From be819f0840910d2eb8dc4a1578b417f8c21c746c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 1 Apr 2014 14:36:09 +0200 Subject: [PATCH] tar: option -T eternal loop fix Resolves: #1083066 Version: 1.27.1-3 --- tar-1.27.1-T-eternal-loop.patch | 13 +++++++++++++ tar.spec | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 tar-1.27.1-T-eternal-loop.patch diff --git a/tar-1.27.1-T-eternal-loop.patch b/tar-1.27.1-T-eternal-loop.patch new file mode 100644 index 0000000..ffc5b88 --- /dev/null +++ b/tar-1.27.1-T-eternal-loop.patch @@ -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; + diff --git a/tar.spec b/tar.spec index 82df1f9..c10da37 100644 --- a/tar.spec +++ b/tar.spec @@ -88,6 +88,13 @@ Patch11: tar-1.27.1-sparse-inf-loops.patch # ~> #916995 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 %bcond_without check @@ -133,6 +140,7 @@ the rmt package on the remote box. %patch10 -p1 -b .default-acls %patch11 -p1 -b .inf-loops-in-sparse %patch12 -p1 -b .big-sparse +%patch13 -p1 -b .T-eternal-loop autoreconf -v