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 | 7ff16de5054bc1c78ae008adeb7b6a28d92e63ef (patch) | |
tree | 533d5cf619a1a9e7436cbfa8e85f119050a8c93e /mkbootfs | |
parent | 35a428ea8faa67d0f9142f7cfe944c03ace830d7 (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); + } + + |