aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/system.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-04-28 03:27:26 +0000
commit89592e552b3c0412427be26551c5074c0aa499d9 (patch)
tree3ea5bbe8ec61c1ac0d4dc65e282de55573fb8a67 /usr.sbin/sade/system.c
parentd1efb9fdc213f66daf873d2e60829245e505e209 (diff)
downloadsrc-89592e552b3c0412427be26551c5074c0aa499d9.tar.gz
src-89592e552b3c0412427be26551c5074c0aa499d9.zip
Fix an ancient index list bug.
Make FTP re-initializion work. Fix fix fix.
Notes
Notes: svn path=/head/; revision=15419
Diffstat (limited to 'usr.sbin/sade/system.c')
-rw-r--r--usr.sbin/sade/system.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index 98362ed07b62..adb89e8ccb69 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/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 {