File rescan-scsi-bus.sh-findremapped-fix-regex.patch of Package sg3_utils.1394
From: Thomas Cech <tcech@suse.cz>
Subject: rescan-scsi-bus.sh: fix regexp not to produce string with spaces
fix regexp not to produce string with spaces
References: bnc#943817
---
scripts/rescan-scsi-bus.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/scripts/rescan-scsi-bus.sh
+++ b/scripts/rescan-scsi-bus.sh
@@ -286,7 +286,7 @@ testonline ()
echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}\nfrom:${SCSISTR#* } \nto: $STR ${norm} \n\n\n"
return 1
fi
- TMPSTR=`echo "$SCSISTR" | sed -n 's/.*Type: *\([a-zA-Z-]*\) *ANSI.*/\1/p'`
+ TMPSTR=`echo "$SCSISTR" | sed -n 's/.*Type: *\([^ ]*\) *ANSI.*/\1/p'`
if [ "$TMPSTR" != "$TYPE" ] ; then
echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}\nfrom:${TMPSTR} \nto: $TYPE ${norm} \n\n\n"
return 1