Blame SOURCES/amanda-3.5.2-CVE-2022-37705.patch

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