offline queue is no longer user-writable, do not attempt resetting fchflags
authorgilles <gilles@openbsd.org>
Tue, 13 Oct 2015 07:18:53 +0000 (07:18 +0000)
committergilles <gilles@openbsd.org>
Tue, 13 Oct 2015 07:18:53 +0000 (07:18 +0000)
it serves no purpose.

ok millert@, ok jung@, ok eric@

usr.sbin/smtpd/smtpd.c

index ff8685f..3b56487 100644 (file)
@@ -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))