Possible solution, since the stuff to deal with the symlinks is OK in the scrip but somebody missed to pass the resulting "progbase" variable to the main process:
--- /usr/bin/firefox 2007-06-13 15:37:26.000000000 +0200
+++ /usr/bin/firefox 2007-06-13 15:39:37.000000000 +0200
@@ -111,6 +111,7 @@
bn=`basename "$progname"`
cd `dirname "$progname"`
progname=`/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
+ progbase="$bn"
if [ ! -x "$progname" ]; then
break
fi
Possible solution, since the stuff to deal with the symlinks is OK in the scrip but somebody missed to pass the resulting "progbase" variable to the main process:
--- /usr/bin/firefox 2007-06-13 15:37:26.000000000 +0200 `/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
+++ /usr/bin/firefox 2007-06-13 15:39:37.000000000 +0200
@@ -111,6 +111,7 @@
bn=`basename "$progname"`
cd `dirname "$progname"`
progname=
+ progbase="$bn"
if [ ! -x "$progname" ]; then
break
fi