diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 05:43:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 05:43:49 +0000 |
commit | d8b44689d4d5a9556804597afd4db4d2f159f1e8 (patch) | |
tree | d60f89ed7d48bdaf44bb4904960224373031bcf9 /usr.bin/getcap | |
parent | 3f853bf6be0b80b22d041fa03ff6b73d53bfeca6 (diff) |
simple program using "stdio rpath"
ok doug
Diffstat (limited to 'usr.bin/getcap')
-rw-r--r-- | usr.bin/getcap/getcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/getcap/getcap.c b/usr.bin/getcap/getcap.c index c2821571dcd..79cefdf7349 100644 --- a/usr.bin/getcap/getcap.c +++ b/usr.bin/getcap/getcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getcap.c,v 1.5 2015/09/25 16:23:18 schwarze Exp $ */ +/* $OpenBSD: getcap.c,v 1.6 2015/10/10 05:43:48 deraadt Exp $ */ /* * Copyright (c) 2005 Todd C. Miller <Todd.Miller@courtesan.com> @@ -40,6 +40,9 @@ main(int argc, char *argv[]) char *cp, *buf, *cap = NULL, **pathvec = NULL; size_t n; + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + aflag = type = 0; while ((ch = getopt(argc, argv, "ab:c:f:n:s:")) != -1) { switch (ch) { |