diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-10 15:39:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-10 15:39:39 +0000 |
commit | 91535144951eeb87c91476dfe800f36edfcf7b6a (patch) | |
tree | ec4d016ef3a4e2beb2f063b0f53b0af4745b40c2 | |
parent | f01fcb05a9b36dc54508a668b2660d1b78854e18 (diff) | |
download | coreutils-91535144951eeb87c91476dfe800f36edfcf7b6a.tar.xz |
Handle argc < optind.
-rw-r--r-- | src/sync.c | 4 |
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 (); |