diff options
author | 2009-07-28 21:12:26 +0000 | |
---|---|---|
committer | 2009-07-28 21:12:26 +0000 | |
commit | 06ee07be87aa7ff8babf4b500ccc7fe265145b4f (patch) | |
tree | 068904eada849d78d039786337c4febb62f19773 | |
parent | Plug a memory leak when calling rtable_add(0) multiple times. Fixing this (diff) | |
download | wireguard-openbsd-06ee07be87aa7ff8babf4b500ccc7fe265145b4f.tar.xz wireguard-openbsd-06ee07be87aa7ff8babf4b500ccc7fe265145b4f.zip |
Use strcmp() for string comparison not ==
ok jacekm@
-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; |