patches/songbird-14-check-readable-core.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 18110 93461edb1490
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

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