diff options
author | 2015-10-13 07:18:53 +0000 | |
---|---|---|
committer | 2015-10-13 07:18:53 +0000 | |
commit | dfa3697137b35255d94c3476aee035eef49cf20d (patch) | |
tree | 52c7fad47ef8b7e9638443b1edb75a9c640e0053 | |
parent | Pledge "stdio rpath" requests for nologin. (diff) | |
download | wireguard-openbsd-dfa3697137b35255d94c3476aee035eef49cf20d.tar.xz wireguard-openbsd-dfa3697137b35255d94c3476aee035eef49cf20d.zip |
offline queue is no longer user-writable, do not attempt resetting fchflags
it serves no purpose.
ok millert@, ok jung@, ok eric@
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index ff8685f3594..3b5648790a3 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.244 2015/10/12 07:58:19 deraadt Exp $ */ +/* $OpenBSD: smtpd.c,v 1.245 2015/10/13 07:18:53 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1134,11 +1134,6 @@ offline_enqueue(char *name) _exit(1); } - if (fchflags(fd, 0) == -1) { - log_warn("warn: smtpd: chflags: %s", path); - _exit(1); - } - if (setgroups(1, &pw->pw_gid) || setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) || setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) |