diff options
-rw-r--r-- | usr.sbin/rmt/rmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index aebaac9d513..a8a9d9cebb7 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmt.c,v 1.17 2015/10/16 14:13:52 deraadt Exp $ */ +/* $OpenBSD: rmt.c,v 1.18 2015/10/20 18:47:21 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -82,6 +82,9 @@ main(int argc, char *argv[]) char *devp; size_t dirlen; + if (pledge("stdio rpath wpath cpath inet", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "d:rw")) != -1) { switch (ch) { case 'd': |