version 1.103, 2015/10/16 05:35:19 |
version 1.104, 2015/10/18 03:39:37 |
|
|
if (isurl(argv[0])) { |
if (isurl(argv[0])) { |
if (pipeout) { |
if (pipeout) { |
#ifndef SMALL |
#ifndef SMALL |
if (pledge("stdio rpath tty inet fattr", |
if (pledge("stdio rpath dns tty inet fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#else |
#else |
if (pledge("stdio rpath tty inet proc exec fattr", |
if (pledge("stdio rpath dns tty inet proc exec fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#endif |
#endif |
} else { |
} else { |
#ifndef SMALL |
#ifndef SMALL |
if (pledge("stdio rpath wpath cpath tty inet fattr", |
if (pledge("stdio rpath wpath cpath dns tty inet fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#else |
#else |
if (pledge("stdio rpath wpath cpath tty inet proc exec fattr", |
if (pledge("stdio rpath wpath cpath dns tty inet proc exec fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#endif |
#endif |