diff --git a/main.c b/main.c index 29615e0c..7b937cc9 100644 --- a/main.c +++ b/main.c @@ -1221,7 +1221,7 @@ decode_switches (argc, argv, env) but not for options from the environment. */ opterr = !env; /* Reset getopt's state. */ - optind = 0; + optind = 1; while (optind < argc) {