aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/exec.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-10-26 02:53:15 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-10-26 02:53:15 +0000
commit34401249214b8af1025ca82a6267e34e4ae825c9 (patch)
treebf6fcb242698519a57a9320c87121766028e076d /sbin/sysinstall/exec.c
parent9dbfabe9eb81117a697582f0e059dd126d68e301 (diff)
downloadsrc-34401249214b8af1025ca82a6267e34e4ae825c9.tar.gz
src-34401249214b8af1025ca82a6267e34e4ae825c9.zip
New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
Notes
Notes: svn path=/head/; revision=3879
Diffstat (limited to 'sbin/sysinstall/exec.c')
-rw-r--r--sbin/sysinstall/exec.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sbin/sysinstall/exec.c b/sbin/sysinstall/exec.c
index 793ff303becb..b4d678005e57 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.1 1994/10/21 02:14:49 phk Exp $
+ * $Id: exec.c,v 1.2 1994/10/21 05:36:42 phk Exp $
*
*/
@@ -35,7 +35,6 @@ exec(int magic, char *cmd, char *args, ...)
int arg = 0;
va_list ap;
struct stat dummy;
- int i;
if (stat(cmd, &dummy) == -1) {
sprintf(errmsg, "Executable %s does not exist\n", cmd);
@@ -58,14 +57,8 @@ exec(int magic, char *cmd, char *args, ...)
close(2); open("/dev/null",O_WRONLY);
break;
case 1:
- close(0);
- i = open("/file.list",O_RDONLY);
- if (i != 0) {
- perror("Couldn't open /etc/file.list");
- }
- close(1); open("/dev/null",O_WRONLY);
- close(2); open("/dev/null",O_WRONLY);
break;
+ close(2); open("/dev/null",O_WRONLY);
default:
break;
}