summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-10 15:39:39 +0000
committerJim Meyering <jim@meyering.net>2003-05-10 15:39:39 +0000
commit91535144951eeb87c91476dfe800f36edfcf7b6a (patch)
treeec4d016ef3a4e2beb2f063b0f53b0af4745b40c2
parentf01fcb05a9b36dc54508a668b2660d1b78854e18 (diff)
downloadcoreutils-91535144951eeb87c91476dfe800f36edfcf7b6a.tar.xz
Handle argc < optind.
-rw-r--r--src/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync.c b/src/sync.c
index 2b8c50ee8..7c2aabad2 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -1,5 +1,5 @@
/* sync - update the super block
- Copyright (C) 1994-2002 Free Software Foundation, Inc.
+ Copyright (C) 1994-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -66,7 +66,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
AUTHORS, usage);
- if (argc != 1)
+ if (1 < argc)
error (0, 0, _("ignoring all arguments"));
sync ();