mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(main): If getopt fails, exit with status 127, not status 1.
This commit is contained in:
1 parent
39ecad7d9a
commit
4e7d4dfd8d
1 file changed
+1
-1
+1
-1
@@ -88,7 +88,7 @@ main (int argc, char **argv)
|
||||
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
|
||||
usage, AUTHORS, (char const *) NULL);
|
||||
if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
|
||||
usage (EXIT_FAILURE);
|
||||
usage (NOHUP_FAILURE);
|
||||
|
||||
if (argc <= optind)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user