tar: option -T eternal loop fix

Resolves: #1083066
Version: 1.27.1-3
This commit is contained in:
Pavel Raiskup 2014-04-01 14:36:09 +02:00
parent 94a3c5750f
commit be819f0840
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/names.c b/src/names.c
index e3bbfb6..8f238ba 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;

View File

@ -88,6 +88,13 @@ Patch11: tar-1.27.1-sparse-inf-loops.patch
# ~> #916995 # ~> #916995
Patch12: tar-1.27.1-big-sparse-listing.patch Patch12: tar-1.27.1-big-sparse-listing.patch
# Fix inf. loop in -T handling (v1.27.{0,1} only, thus fc21 only)
# ~> uptream (commit 8528958)
# http://www.mail-archive.com/bug-tar@gnu.org/msg04470.html
# ~> (#1083066)
Patch13: tar-1.27.1-T-eternal-loop.patch
# run "make check" by default # run "make check" by default
%bcond_without check %bcond_without check
@ -133,6 +140,7 @@ the rmt package on the remote box.
%patch10 -p1 -b .default-acls %patch10 -p1 -b .default-acls
%patch11 -p1 -b .inf-loops-in-sparse %patch11 -p1 -b .inf-loops-in-sparse
%patch12 -p1 -b .big-sparse %patch12 -p1 -b .big-sparse
%patch13 -p1 -b .T-eternal-loop
autoreconf -v autoreconf -v