summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2015-12-30 11:40:31 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2015-12-30 11:40:31 +0000
commitbc726ba25cdd8390a9f76fd7407d5b02902b8354 (patch)
treedd4a2fd56ffa06a9cfa6db10f3892dacca81942a /usr.sbin/smtpd
parent91f19920f361f1d81ba1b17381decf1fd58dd9a9 (diff)
d_namlen is not portable, there is no reason to keep a delta with -portable and
it is not even "optimizing" things, this is a startup loop which will not bring any benefit at runtime. thus, change it and reduce diff to -portable. ok gilles sunil
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/queue_fs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue_fs.c b/usr.sbin/smtpd/queue_fs.c
index 0751e7c2589..41e92c03091 100644
--- a/usr.sbin/smtpd/queue_fs.c
+++ b/usr.sbin/smtpd/queue_fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue_fs.c,v 1.13 2015/12/28 22:08:30 jung Exp $ */
+/* $OpenBSD: queue_fs.c,v 1.14 2015/12/30 11:40:30 jung Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -423,7 +423,8 @@ queue_fs_message_walk(uint64_t *evpid, char *buf, size_t len,
continue;
/* ignore files other than envelopes */
- if (dp->d_namlen != 16 || strncmp(dp->d_name, msgid_str, 8))
+ if (strlen(dp->d_name) != 16 ||
+ strncmp(dp->d_name, msgid_str, 8))
continue;
tmp = NULL;