version 1.138, 2021/07/14 13:33:57 |
version 1.139, 2023/11/09 18:18:59 |
|
|
if (isurl(argv[0])) { |
if (isurl(argv[0])) { |
if (pipeout) { |
if (pipeout) { |
#ifndef SMALL |
#ifndef SMALL |
|
if (!resume) { |
if (pledge("stdio rpath dns 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"); |
#else |
} else |
|
#endif /* !SMALL */ |
if (pledge("stdio rpath dns tty inet fattr", |
if (pledge("stdio rpath dns tty inet fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#endif |
|
} else { |
} else { |
#ifndef SMALL |
#ifndef SMALL |
|
if (!resume) { |
if (pledge("stdio rpath wpath cpath dns 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"); |
#else |
} else |
|
#endif /* !SMALL */ |
if (pledge("stdio rpath wpath cpath dns tty inet fattr", |
if (pledge("stdio rpath wpath cpath dns tty inet fattr", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
#endif |
|
} |
} |
|
|
rval = auto_fetch(argc, argv, outfile); |
rval = auto_fetch(argc, argv, outfile); |