diff options
author | Joerg Jung <jung@cvs.openbsd.org> | 2015-12-30 11:40:31 +0000 |
---|---|---|
committer | Joerg Jung <jung@cvs.openbsd.org> | 2015-12-30 11:40:31 +0000 |
commit | bc726ba25cdd8390a9f76fd7407d5b02902b8354 (patch) | |
tree | dd4a2fd56ffa06a9cfa6db10f3892dacca81942a /usr.sbin/smtpd | |
parent | 91f19920f361f1d81ba1b17381decf1fd58dd9a9 (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.c | 5 |
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; |