From: Jim Meyering Date: Sat, 10 May 2003 15:39:39 +0000 (+0000) Subject: Handle argc < optind. X-Git-Tag: v5.0.1~538 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91535144951eeb87c91476dfe800f36edfcf7b6a;p=thirdparty%2Fcoreutils.git Handle argc < optind. --- diff --git a/src/sync.c b/src/sync.c index 2b8c50ee8c..7c2aabad2f 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 ();