summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
committerjkh <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
commitbef4595dff61c4da60fe242b7e3e6837f7652fe8 (patch)
tree3ea5bbe8ec61c1ac0d4dc65e282de55573fb8a67 /usr.sbin/sysinstall/system.c
parent87634a8e4d491f936c98dc09903764bef2a2cc76 (diff)
downloadFreeBSD-src-bef4595dff61c4da60fe242b7e3e6837f7652fe8.zip
FreeBSD-src-bef4595dff61c4da60fe242b7e3e6837f7652fe8.tar.gz
Fix an ancient index list bug.
Make FTP re-initializion work. Fix fix fix.
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r--usr.sbin/sysinstall/system.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 98362ed..adb89e8 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.53 1996/04/26 18:19:38 jkh Exp $
+ * $Id: system.c,v 1.54 1996/04/28 01:07:27 jkh Exp $
*
* Jordan Hubbard
*
@@ -215,7 +215,14 @@ vsystem(char *fmt, ...)
dup2(DebugFD, 1);
dup2(DebugFD, 2);
}
- execl("/stand/sh", "sh", "-c", cmd, (char *)NULL);
+ else {
+ close(1); open("/dev/null", O_WRONLY);
+ dup2(1, 2);
+ }
+ if (!RunningAsInit)
+ execl("/bin/sh", "/bin/sh", "-c", cmd, (char *)NULL);
+ else
+ execl("/stand/sh", "/stand/sh", "-c", cmd, (char *)NULL);
exit(1);
}
else {
OpenPOWER on IntegriCloud