blob: 5a716e6dc3a2806ddbbe3b05f209f768facbab58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff -urpN hsqldb.orig/bin/hsqldb hsqldb/bin/hsqldb
--- hsqldb.orig/bin/hsqldb 2006-07-08 15:55:55.000000000 +0200
+++ hsqldb/bin/hsqldb 2006-07-08 16:03:28.000000000 +0200
@@ -282,6 +282,18 @@ else
echo "Auth file '$_AUTH_TEST_PATH' not readable" 1>&2
exit 2
}
+
+ # resolve links - $_AUTH_TEST_PATH may be a softlink
+ while [ -h "$_AUTH_TEST_PATH" ]; do
+ ls=`ls -ld "$_AUTH_TEST_PATH"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ _AUTH_TEST_PATH="$link"
+ else
+ _AUTH_TEST_PATH=`dirname "$_AUTH_TEST_PATH"`/"$link"
+ fi
+ done
+
ls -ld "$_AUTH_TEST_PATH" | grep '^-..------' > /dev/null 2>&1 || {
echo "Fix permissions on '$_AUTH_TEST_PATH' like 'chmod 600 $_AUTH_TEST_PATH'" 1>&2
exit 2
|