From 2614f734dc2d54c7cd5455adbf907494419128b5f7b06ec613362f9ce83e3d0a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 26 Aug 2013 15:13:32 +0000 Subject: [PATCH] Accepting request 196361 from home:vitezslav_cizek:branches:Base:System - added fix for paxutils rtapelib which is bundled with tar. the very same fix was added to cpio too (bnc#658031) * paxutils-rtapelib_mtget.patch OBS-URL: https://build.opensuse.org/request/show/196361 OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=45 --- paxutils-rtapelib_mtget.patch | 13 +++++++++++++ tar.changes | 7 +++++++ tar.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 paxutils-rtapelib_mtget.patch diff --git a/paxutils-rtapelib_mtget.patch b/paxutils-rtapelib_mtget.patch new file mode 100644 index 0000000..7d98196 --- /dev/null +++ b/paxutils-rtapelib_mtget.patch @@ -0,0 +1,13 @@ +Index: cpio-2.11/lib/rtapelib.c +=================================================================== +--- cpio-2.11.orig/lib/rtapelib.c 2013-07-23 13:18:27.119431054 +0200 ++++ cpio-2.11/lib/rtapelib.c 2013-07-23 13:19:35.728188104 +0200 +@@ -710,7 +710,7 @@ rmt_ioctl__ (int handle, int operation, + || (status = get_status (handle), status == -1)) + return -1; + +- if (status > sizeof (struct mtop)) ++ if (status > sizeof (struct mtget)) + { + errno = EOVERFLOW; + return -1; diff --git a/tar.changes b/tar.changes index e1aa6d0..4b67ca6 100644 --- a/tar.changes +++ b/tar.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 22 12:47:33 UTC 2013 - vcizek@suse.com + +- added fix for paxutils rtapelib which is bundled with tar. + the very same fix was added to cpio too (bnc#658031) + * paxutils-rtapelib_mtget.patch + ------------------------------------------------------------------- Fri Apr 5 10:43:39 UTC 2013 - idonmez@suse.com diff --git a/tar.spec b/tar.spec index 32ce7c2..40eaab7 100644 --- a/tar.spec +++ b/tar.spec @@ -33,6 +33,7 @@ Patch6: tar-backup-spec-fix-paths.patch Patch7: tar-1.26-remove_O_NONBLOCK.patch Patch8: tar-1.26-stdio.in.patch Patch9: config-guess-sub-update.patch +Patch10: paxutils-rtapelib_mtget.patch %if 0%{?suse_version} >= %min_suse_ver BuildRequires: help2man Recommends: tar-lang = %{version} @@ -68,6 +69,7 @@ Shell scripts for system backup/restore %patch7 -p1 %patch8 -p1 %patch9 +%patch10 -p1 %build %define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter