Description: Fix the fix for CVE-2022-37705
Author: pcahyna https://github.com/pcahyna

Index: amanda-3.5.1/client-src/runtar.c
===================================================================
--- amanda-3.5.1.orig/client-src/runtar.c
+++ amanda-3.5.1/client-src/runtar.c
@@ -191,9 +191,13 @@ main(
 		g_str_has_prefix(argv[i],"--newer") ||
 		g_str_has_prefix(argv[i],"--exclude-from") ||
 		g_str_has_prefix(argv[i],"--files-from")) {
-		good_option++;
-	    } else if (argv[i][0] != '-') {
-		/* argument values are accounted for here */
+		if (strchr(argv[i], '=')) {
+		    good_option++;
+		} else {
+		    /* Accept theses options with the following argument */
+		    good_option += 2;
+		}
+            } else if (argv[i][0] != '-') {
 		good_option++;
 	    }
 	}
