From: deraadt Date: Tue, 20 Oct 2015 18:47:21 +0000 (+0000) Subject: believe this will work with "stdio rpath wpath cpath inet" now that X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c169fbf63001fd1b7df75e315d7fdfdba9b5ca98;p=openbsd 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? --- 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':