diff --git a/0002-bugfix-sg3_utils-fix-syntax-error.patch b/0002-bugfix-sg3_utils-fix-syntax-error.patch index cd75db43395d606b5091bd51ae4c50d9b7d2f68c..d2c7fac75061176d4f7fe0cdcadfdd72d0c27c64 100644 --- a/0002-bugfix-sg3_utils-fix-syntax-error.patch +++ b/0002-bugfix-sg3_utils-fix-syntax-error.patch @@ -38,7 +38,7 @@ index b1cbebc..25a5f2a 100755 printf "\r\e[A"; # Optimization: if lun==0, stop here (only if in non-remove mode) - if [ "$lun" = 0 ] && [ -z "$remove" ] && [ "$optscan" = 1 ] ; then -+ if [ "x$lun" = x0 ] && [ -z "$remove" ] && [ "x$optscan" = x1 ] ; then ++ if [ x"$lun" = x0 ] && [ -z "$remove" ] && [ "x$optscan" = x1 ] ; then return 1; fi else diff --git a/sg3_utils.spec b/sg3_utils.spec index efe74a2479f9d3984d528ccd0c4173d1850d5690..a27d2ebbb202f1573bff722fb72d012abe11740a 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -1,6 +1,6 @@ Name: sg3_utils Version: 1.46 -Release: 3 +Release: 4 Summary: Utilities that send SCSI commands to devices. License: GPL-2.0-or-later AND BSD URL: http://sg.danny.cz/sg/sg3_utils.html @@ -76,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la %{_mandir}/man8/* %changelog +* Thu Feb 17 2022 Wenchao Hao -1.46-4 +- Fix grammar error in rescan-scsi-bus.sh + * Tue Feb 15 2022 Wenchao Hao -1.46-3 - Fix rescan-scsi-bus.sh -r remove valid disks