tar/tar-fix_eternal_loop_in_handle_option.patch
Marcus Meissner 5f0ee07258 Accepting request 227619 from home:vitezslav_cizek:branches:Base:System
- fix an infinite loop in handle_option (bnc#867919 and bnc#870422)
  * added tar-fix_eternal_loop_in_handle_option.patch

OBS-URL: https://build.opensuse.org/request/show/227619
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=53
2014-03-28 10:52:45 +00:00

20 lines
430 B
Diff

commit c13948fd0aef759e95038bd28416077b12f7dd29
Author: Vitezslav Cizek <vcizek@suse.cz>
Date: Wed Mar 26 18:34:53 2014 +0100
fix an eternal loop in handle_option
diff --git a/src/names.c b/src/names.c
index 9fc0ad5..963ec07 100644
--- a/src/names.c
+++ b/src/names.c
@@ -439,7 +439,7 @@ handle_option (const char *str)
int i;
while (*str && isspace (*str))
- ;
+ str++;
if (*str != '-')
return 1;