diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-20 18:47:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-20 18:47:22 +0000 |
commit | ea4bdaf738113109e0ef80599a2ffe2150e44d69 (patch) | |
tree | da201260d2a63f4599f579a07d91371fe37e31a7 | |
parent | acf03f29a606dfd39ab9fc10b8bf075325c7b7dd (diff) |
believe this will work with "stdio rpath wpath cpath inet" now that
SO_RCVBUF is permitted. It may even be possible to lose the "inet" a
bit later in the code. Anyone want to test?
-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': |