sync with OpenBSD -current

This commit is contained in:
purplerain 2023-11-22 20:51:44 +00:00
parent 1abf3d5d6c
commit 10cf24ada0
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
40 changed files with 462 additions and 489 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: main.c,v 1.139 2023/11/09 18:18:59 kn Exp $ */
/* $OpenBSD: main.c,v 1.141 2023/11/22 02:20:54 kn Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@ -618,7 +618,7 @@ main(volatile int argc, char *argv[])
if (pipeout) {
#ifndef SMALL
if (!resume) {
if (pledge("stdio rpath dns tty inet proc exec fattr",
if (pledge("stdio rpath dns tty inet fattr",
NULL) == -1)
err(1, "pledge");
} else
@ -640,7 +640,7 @@ main(volatile int argc, char *argv[])
}
rval = auto_fetch(argc, argv, outfile);
if (rval >= 0) /* -1 == connected and cd-ed */
if (rval >= 0 || pipeout) /* -1 == connected and cd-ed */
exit(rval);
} else {
#ifndef SMALL