Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
opensmtpd
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian
opensmtpd
Commits
902e9707
Commit
902e9707
authored
8 years ago
by
Freddy DISSAUX
Browse files
Options
Downloads
Patches
Plain Diff
use d_type only if HAVE_STRUCT_DIR_D_TYPE
parent
3a607a98
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smtpd/queue_fs.c
+2
-0
2 additions, 0 deletions
smtpd/queue_fs.c
with
2 additions
and
0 deletions
smtpd/queue_fs.c
+
2
−
0
View file @
902e9707
...
...
@@ -426,8 +426,10 @@ queue_fs_message_walk(uint64_t *evpid, char *buf, size_t len,
(
void
)
snprintf
(
msgid_str
,
sizeof
msgid_str
,
"%08"
PRIx32
,
msgid
);
while
((
dp
=
readdir
(
dir
))
!=
NULL
)
{
#if defined(HAVE_STRUCT_DIR_D_TYPE)
if
(
dp
->
d_type
!=
DT_REG
)
continue
;
#endif
/* ignore files other than envelopes */
if
(
strlen
(
dp
->
d_name
)
!=
16
||
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment