diff options
Diffstat (limited to 'src/uniq.c')
-rw-r--r-- | src/uniq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uniq.c b/src/uniq.c index 36119cff8..fc2b19a82 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -413,6 +413,11 @@ main (int argc, char **argv) { if (optind == argc) break; + if (nfiles == 2) + { + error (0, 0, _("extra operand `%s'"), argv[optind]); + usage (1); + } file[nfiles++] = argv[optind++]; } else switch (optc) |