diff options
author | Michael I. Bushnell <mib@gnu.org> | 1993-04-28 19:20:23 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1993-04-28 19:20:23 +0000 |
commit | c4bbb0b01bbfd4c28ba8e4e2ae173cb2f089a43b (patch) | |
tree | c581ee9e4df580710f21c7836f96b6797e194e8b /mkbootfs | |
parent | 31fc967a88f527319309623d62177ec0b5304ceb (diff) |
Formerly mkbootfs.c.~2~
Diffstat (limited to 'mkbootfs')
-rw-r--r-- | mkbootfs/mkbootfs.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/mkbootfs/mkbootfs.c b/mkbootfs/mkbootfs.c index 22c8f647..75e1523e 100644 --- a/mkbootfs/mkbootfs.c +++ b/mkbootfs/mkbootfs.c @@ -39,5 +39,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ main (int argc, char **argv) { - if (argc != - + int execserver; + + if (argc != 2) + { + fprintf (stderr, "Usage: %s execserver\n", argv[0]); + exit (1); + } + + execserver = open (argv[1]); + if (execserver == -1) + { + perror (argv[1]); + exit (1); + } + + |