]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Handle argc < optind.
authorJim Meyering <jim@meyering.net>
Sat, 10 May 2003 15:39:39 +0000 (15:39 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 May 2003 15:39:39 +0000 (15:39 +0000)
src/sync.c

index 2b8c50ee8ceeb0555dde89f78e7c84020a592349..7c2aabad2f708638ffb3bf3af80d80e4ea4cc95c 100644 (file)
@@ -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 ();