components/areca/patches/01-areca_sh.patch
author April Chin <april.chin@oracle.com>
Thu, 09 Jul 2015 18:16:57 -0700
branchs11u2-sru
changeset 4640 044ef665199a
parent 2507 bdc001f3484f
child 4601 63c842b82978
permissions -rw-r--r--
20396665 problem in PYTHON-MOD/PIL

# This patch fixes a problem in which sometimes areca wouldn't
# start, depending on your current working directory, due to
# faulty setting of PROGRAM_DIR.
# When updating to the new areca v5.2.16, this patch should
# no longer be needed.
diff -rupN areca-7.1-orig/areca.sh areca-7.1/areca.sh
--- areca-7.1-orig/areca.sh	2009-04-20 01:44:14.000000000 -0700
+++ areca-7.1/areca.sh	2012-11-19 16:13:05.288917000 -0800
@@ -7,14 +7,7 @@
 #Options
 JAVADIR=/usr/java
 
-#Getting Areca's directory
-PROGRAM_DIR=`dirname "$0"`
-#Solaris path
-if [ -f ../../usr/bin/areca ]; then
-	PROGRAM_DIR=../../usr/share/areca
-fi
-
-PROGRAM_DIR=`cd "$PROGRAM_DIR"; pwd`
+PROGRAM_DIR=/usr/share/areca
 cd "${PROGRAM_DIR}"
 
 #Configured directories