pledge flock doesn't seem necessary any longer?

Index: smtpd.c
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.c,v
retrieving revision 1.306
diff -u -p -u -r1.306 smtpd.c
--- smtpd.c    16 Nov 2018 20:55:59 -0000    1.306
+++ smtpd.c    25 Nov 2018 02:02:57 -0000
@@ -1070,8 +1070,8 @@ smtpd(void) {

     purge_task();

-    if (pledge("stdio rpath wpath cpath fattr flock tmppath "
-        "getpw sendfd proc exec id inet unix", NULL) == -1)
+    if (pledge("stdio rpath wpath cpath fattr tmppath getpw "
+        "sendfd proc exec id inet unix", NULL) == -1)
         err(1, "pledge");

     event_dispatch();


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to