Fix previous commit. It mistakenly included a change for debug.
authoryasuoka <yasuoka@openbsd.org>
Mon, 10 Sep 2018 06:40:06 +0000 (06:40 +0000)
committeryasuoka <yasuoka@openbsd.org>
Mon, 10 Sep 2018 06:40:06 +0000 (06:40 +0000)
usr.sbin/pstat/pstat.c

index 6ad0460..4bae8c1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: pstat.c,v 1.119 2018/09/07 07:24:05 yasuoka Exp $     */
+/*     $OpenBSD: pstat.c,v 1.120 2018/09/10 06:40:06 yasuoka Exp $     */
 /*     $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $   */
 
 /*-
@@ -229,8 +229,8 @@ main(int argc, char *argv[])
                        ttymodeprep();
        }
 
-//     if (unveil(_PATH_DEVDB, "r") == -1)
-//             err(1, "unveil");
+       if (unveil(_PATH_DEVDB, "r") == -1)
+               err(1, "unveil");
        if (pledge("stdio rpath vminfo", NULL) == -1)
                err(1, "pledge");