diff options
author | phk <phk@FreeBSD.org> | 1994-10-26 02:53:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-26 02:53:15 +0000 |
commit | 924ebf6a0f8cccb5264f2e21122ff691fa88c4f4 (patch) | |
tree | bf6fcb242698519a57a9320c87121766028e076d /sbin/sysinstall/exec.c | |
parent | 22dfeb1b9b794006113f7f0f2afd4e593daf4cc4 (diff) | |
download | FreeBSD-src-924ebf6a0f8cccb5264f2e21122ff691fa88c4f4.zip FreeBSD-src-924ebf6a0f8cccb5264f2e21122ff691fa88c4f4.tar.gz |
New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
Diffstat (limited to 'sbin/sysinstall/exec.c')
-rw-r--r-- | sbin/sysinstall/exec.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sbin/sysinstall/exec.c b/sbin/sysinstall/exec.c index 793ff30..b4d6780 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; } |