patches/songbird-14-check-readable-core.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 3062 2a7bf2823c88
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

diff --git a/installer/linux/songbird.sh b/installer/linux/songbird.sh
index ece9dbb..a325ed9 100755
--- a/installer/linux/songbird.sh
+++ b/installer/linux/songbird.sh
@@ -158,7 +158,7 @@ moz_run_program()
 	if [ "$DEBUG_CORE_FILES" ]
 	then
 		crc_old=
-		if [ -f core ]
+		if [ -f core -a -r core ]
 		then
 			crc_old=`$crc_prog core | awk '{print $1;}' `
 		fi
@@ -170,7 +170,7 @@ moz_run_program()
 	exitcode=$?
 	if [ "$DEBUG_CORE_FILES" ]
 	then
-		if [ -f core ]
+		if [ -f core -a -r core ]
 		then
 			crc_new=`$crc_prog core | awk '{print $1;}' `
 		fi