diff options
Diffstat (limited to 'src/mkdir.c')
-rw-r--r-- | src/mkdir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mkdir.c b/src/mkdir.c index 3d98ac627..e9da99beb 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -91,15 +91,15 @@ main (argc, argv) } } - if (optind == argc) - usage (); - if (flag_version) fprintf (stderr, "%s\n", version_string); if (flag_help) usage (); + if (optind == argc) + usage (); + newmode = 0777 & ~umask (0); parent_mode = newmode | 0300; /* u+wx */ if (symbolic_mode) @@ -130,7 +130,7 @@ static void usage () { fprintf (stderr, "\ -Usage: %s [-p] [-m mode] [--path] [--mode=mode] dir...\n", +Usage: %s [-p] [-m mode] [--path] [--mode=mode] [--help] [--version] dir...\n", program_name); exit (1); } |