summaryrefslogtreecommitdiff
path: root/src/pathchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathchk.c')
-rw-r--r--src/pathchk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index de8bc6c3f..a34df0929 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -151,7 +151,10 @@ main (argc, argv)
usage (0);
if (optind == argc)
- usage (1);
+ {
+ error (0, 0, "too few arguments");
+ usage (1);
+ }
for (; optind < argc; ++optind)
exit_status |= validate_path (argv[optind], check_portability);