diff options
Diffstat (limited to 'mkbootfs/mkbootfs.c')
-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); + } + + |