From ed37ddf8421e34a255eaedfc1e9c3a3f9d454b95 Mon Sep 17 00:00:00 2001 From: Prajwal T R Date: Thu, 22 Dec 2022 10:37:30 -0700 Subject: [PATCH] fix : fix increment logic for good_option - for arguements of type --file=x or --file x, fixed logic while incrementing value. --- client-src/runtar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-src/runtar.c b/client-src/runtar.c index d04a1385f6..499c7dfecb 100644 --- a/client-src/runtar.c +++ b/client-src/runtar.c @@ -191,9 +191,9 @@ main( g_str_has_prefix(argv[i],"--newer") || g_str_has_prefix(argv[i],"--exclude-from") || g_str_has_prefix(argv[i],"--files-from")) { - /* Accept theses options with the following argument */ - good_option += 2; + good_option++; } else if (argv[i][0] != '-') { + /* argument values are accounted for here */ good_option++; } }