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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3062
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
diff --git a/installer/linux/songbird.sh b/installer/linux/songbird.sh
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
index ece9dbb..a325ed9 100755
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
--- a/installer/linux/songbird.sh
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
+++ b/installer/linux/songbird.sh
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
@@ -158,7 +158,7 @@ moz_run_program()
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
 	if [ "$DEBUG_CORE_FILES" ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
 	then
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
 		crc_old=
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
-		if [ -f core ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
+		if [ -f core -a -r core ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
 		then
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
 			crc_old=`$crc_prog core | awk '{print $1;}' `
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
 		fi
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
@@ -170,7 +170,7 @@ moz_run_program()
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
 	exitcode=$?
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
 	if [ "$DEBUG_CORE_FILES" ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
 	then
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
-		if [ -f core ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
+		if [ -f core -a -r core ]
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
 		then
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
 			crc_new=`$crc_prog core | awk '{print $1;}' `
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
 		fi
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23