From 90f2c5f9c3ecad1afffbdb0360226a30791d0835 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 1 Jul 2024 16:20:12 +0200 Subject: [PATCH] main UPDATE reset getopt optind --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index c9ec3793..dc354f7e 100644 --- a/src/main.c +++ b/src/main.c @@ -1147,6 +1147,7 @@ main(int argc, char *argv[]) np2srv.server_dir = SERVER_DIR; /* process command line options */ + optind = 0; while ((c = getopt(argc, argv, "dFhVp:f:U::m:u:g:t:x:v:c:")) != -1) { switch (c) { case 'd':