forked from pool/amanda
0ac83544ed
- Add CVE-2022-37705.patch to fix privilege scalation (boo#1208032, gh#zmanda/amanda#194) OBS-URL: https://build.opensuse.org/request/show/1066165 OBS-URL: https://build.opensuse.org/package/show/Archiving/amanda?expand=0&rev=86
17 lines
607 B
Diff
17 lines
607 B
Diff
Index: amanda-tag-community-3.5.2/client-src/runtar.c
|
|
===================================================================
|
|
--- amanda-tag-community-3.5.2.orig/client-src/runtar.c
|
|
+++ amanda-tag-community-3.5.2/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++;
|
|
}
|
|
}
|