mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-31 21:09:37 -04:00
(main): If getopt fails, exit with status 127, not status 1.
This commit is contained in:
+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