diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/mkfifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index ef3d667e2..46b1343cd 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c @@ -60,7 +60,7 @@ extern int mkfifo_main(int argc, char **argv) argc--; argv++; } - if (argc < 1) + if (argc < 1 || *argv[0] == '-') usage(mkfifo_usage); if (mkfifo(*argv, mode) < 0) { perror("mkfifo"); |