aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/exec.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>1994-11-21 07:33:22 +0000
committercvs2svn <cvs2svn@FreeBSD.org>1994-11-21 07:33:22 +0000
commit01233029edba45b14c75afe36248d0df998b3cc3 (patch)
treee3246a9664c2bcea9329b550600f6612589b3cd0 /sbin/sysinstall/exec.c
parentc264e2c65c3f4fe911fa70df828625a6b19c6d84 (diff)
downloadsrc-01233029edba45b14c75afe36248d0df998b3cc3.tar.gz
src-01233029edba45b14c75afe36248d0df998b3cc3.zip
This commit was manufactured by cvs2svn to create branch 'BETA_2_0'.
Notes
Notes: svn path=/releng/BETA_2_0/; revision=4743
Diffstat (limited to 'sbin/sysinstall/exec.c')
-rw-r--r--sbin/sysinstall/exec.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/sysinstall/exec.c b/sbin/sysinstall/exec.c
index 00f6cd76281f..5487604335cf 100644
--- a/sbin/sysinstall/exec.c
+++ b/sbin/sysinstall/exec.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: exec.c,v 1.6 1994/11/08 14:04:16 jkh Exp $
+ * $Id: exec.c,v 1.8 1994/11/18 11:30:02 phk Exp $
*
*/
@@ -38,8 +38,7 @@ exec(int magic, char *cmd, char *args, ...)
struct stat dummy;
if (stat(cmd, &dummy) == -1) {
- sprintf(errmsg, "Executable %s does not exist\n", cmd);
- return(-1);
+ Fatal("Executable %s does not exist", cmd);
}
va_start(ap, args);
@@ -65,6 +64,11 @@ exec(int magic, char *cmd, char *args, ...)
case 2:
case 3:
close(debug_fd);
+ break;
+ case 4:
+ close(0) ; open("/stand/sysinstall",O_RDONLY);
+ close(1) ; open("/mnt/stand/sysinstall",
+ O_WRONLY|O_CREAT|O_TRUNC,0755);
default:
break;
}