From dfa3697137b35255d94c3476aee035eef49cf20d Mon Sep 17 00:00:00 2001 From: gilles Date: Tue, 13 Oct 2015 07:18:53 +0000 Subject: [PATCH] offline queue is no longer user-writable, do not attempt resetting fchflags it serves no purpose. ok millert@, ok jung@, ok eric@ --- usr.sbin/smtpd/smtpd.c | 7 +------ 1 file changed, 1 insertion(+), 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 @@ -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)) -- 2.20.1