diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-07-28 21:12:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-07-28 21:12:27 +0000 |
commit | 5a8b485770b64f31116865b644c971a7626b4301 (patch) | |
tree | 92d5b4278ceb683efe925d479d777da1c88d0464 /usr.sbin/smtpd | |
parent | 1956d5dae5defff52b013b3007574f13b4e9882d (diff) |
Use strcmp() for string comparison not ==
ok jacekm@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 77c0fcb2c3d..1f691892b68 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.76 2009/07/28 13:54:35 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.77 2009/07/28 21:12:26 jsg Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -1065,7 +1065,7 @@ setup_spool(uid_t uid, gid_t gid) uid_t owner; gid_t group; - if (paths[n] == PATH_OFFLINE) { + if (!strcmp(paths[n], PATH_OFFLINE)) { mode = 01777; owner = 0; group = 0; |