diff --git a/sg3_utils-flush-fixup.patch b/sg3_utils-flush-fixup.patch new file mode 100644 index 0000000..0f93846 --- /dev/null +++ b/sg3_utils-flush-fixup.patch @@ -0,0 +1,13 @@ +Index: scripts/rescan-scsi-bus.sh +=================================================================== +--- scripts/rescan-scsi-bus.sh.orig ++++ scripts/rescan-scsi-bus.sh +@@ -1183,7 +1183,7 @@ declare -i updated=0 + declare -i rmvd=0 + + if [ -n "$flush" ] ; then +- if [-x $MULTIPATH ] ; then ++ if [ -x $MULTIPATH ] ; then + flushmpaths 1 + fi + fi diff --git a/sg3_utils.changes b/sg3_utils.changes index 44ea925..03c38b0 100644 --- a/sg3_utils.changes +++ b/sg3_utils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 16 11:06:52 UTC 2015 - m4mnux@gmail.com + +- Add sg3_utils-flush-fixup.patch: Fix syntax error when -f (flush + failed multipath devices) used in command line. + ------------------------------------------------------------------- Mon Oct 5 10:31:04 UTC 2015 - zaitor@opensuse.org diff --git a/sg3_utils.spec b/sg3_utils.spec index 9a0bceb..feba03b 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -30,6 +30,7 @@ Patch1: sgut-libversioning.diff Patch3: sg3_utils-sg_inq-blacklist.diff # PATCH-FIX-UPSTREAM sg3_utils-58-scsi-sg3_symlink-fixup.patch boo#940833 boo#940834 boo#947947 zaitor@opensuse.org -- Fix broken line in script Patch4: sg3_utils-58-scsi-sg3_symlink-fixup.patch +Patch5: sg3_utils-flush-fixup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtool BuildRequires: udev @@ -88,6 +89,7 @@ applications that want to make use of libsgutils. %patch1 -p1 %patch3 -p1 %patch4 -p1 +%patch5 %build autoreconf -fi