From 4892f7950373dca01f1d0183f69cbbaadf8ee4c4 Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Mon, 24 Apr 2006 13:37:44 +0000 Subject: [PATCH] - fix problem when options at the end of command line were not recognized (#188707) --- tar-1.15.1-optionsOrder.patch | 14 ++++++++++++++ tar.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tar-1.15.1-optionsOrder.patch diff --git a/tar-1.15.1-optionsOrder.patch b/tar-1.15.1-optionsOrder.patch new file mode 100644 index 0000000..9319ada --- /dev/null +++ b/tar-1.15.1-optionsOrder.patch @@ -0,0 +1,14 @@ +--- tar-1.15.1/src/tar.c.optionsOrder 2006-04-24 15:25:55.000000000 +0200 ++++ tar-1.15.1/src/tar.c 2006-04-24 15:27:01.000000000 +0200 +@@ -617,9 +617,9 @@ + + switch (key) + { +- case 1: ++ case ARGP_KEY_ARG: + /* File name or non-parsed option, because of ARGP_IN_ORDER */ +- name_add (optarg); ++ name_add (arg); + args->input_files++; + break; + diff --git a/tar.spec b/tar.spec index 817e8c5..2f28e2e 100644 --- a/tar.spec +++ b/tar.spec @@ -1,7 +1,7 @@ Summary: A GNU file archiving program. Name: tar Version: 1.15.1 -Release: 15 +Release: 16 License: GPL Group: Applications/Archiving URL: http://www.gnu.org/software/tar/ @@ -19,6 +19,7 @@ Patch14: tar-1.15.1-padCorrectly.patch Patch15: tar-1.15.1-vfatTruncate.patch Patch16: tar-1.15.1-heapOverflow.patch Patch17: tar-1.15.1-hugeSparse.patch +Patch18: tar-1.15.1-optionsOrder.patch Prereq: info BuildRequires: autoconf automake gzip @@ -49,6 +50,7 @@ the rmt package. %patch15 -p1 -b .vfatTruncate %patch16 -p0 -b .heapOverflow %patch17 -p1 -b .hugeSparse +%patch18 -p1 -b .optionsOrder %build @@ -119,6 +121,10 @@ fi %{_infodir}/tar.info* %changelog +* Mon Apr 24 2006 Peter Vrabec 1.15.1-16 +- fix problem when options at the end of command line were + not recognized (#188707) + * Thu Apr 13 2006 Peter Vrabec 1.15.1-15 - fix segmentation faul introduced with hugeSparse.patch