Skip to content

Commit 497410c

Browse files
Merge pull request #196 from prajwaltr93/Fix-Privilege-Escalation-Runtar
Fixes Open Vulnerability CVE-2022-37705
2 parents 6fc3642 + 43c5b32 commit 497410c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-src/runtar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ main(
191191
g_str_has_prefix(argv[i],"--newer") ||
192192
g_str_has_prefix(argv[i],"--exclude-from") ||
193193
g_str_has_prefix(argv[i],"--files-from")) {
194-
/* Accept theses options with the following argument */
195-
good_option += 2;
194+
good_option++;
196195
} else if (argv[i][0] != '-') {
196+
/* argument values are accounted for here */
197197
good_option++;
198198
}
199199
}

0 commit comments

Comments
 (0)