Bug 384304 - "/usr/bin/firefox is not able to handle symlinks due to error in script" [p=hjmf@telefonica.net (H. Montoliu) r=cls a1.9=mconnor]
authorreed@reedloden.com
Fri, 05 Oct 2007 00:29:26 -0700
changeset 6660 2bdd615d7cd2e05b7ed852d1f9e6c1e5709ee8e5
parent 6659 5b5cb533cbecef1b32bada4c05e8106eee10c2a8
child 6661 8224f33199d6408f0756d1f0593afd3d08c9e1c4
push idunknown
push userunknown
push dateunknown
reviewerscls
bugs384304
milestone1.9a9pre
Bug 384304 - "/usr/bin/firefox is not able to handle symlinks due to error in script" [p=hjmf@telefonica.net (H. Montoliu) r=cls a1.9=mconnor]
browser/app/mozilla.in
--- a/browser/app/mozilla.in
+++ b/browser/app/mozilla.in
@@ -31,17 +31,17 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-## $Id: mozilla.in,v 1.15 2007/08/03 14:46:19 benjamin%smedbergs.us Exp $
+## $Id: mozilla.in,v 1.16 2007/10/05 07:29:26 reed%reedloden.com Exp $
 ## 
 ## Usage:
 ##
 ## $ mozilla [args]
 ##
 ## This script is meant to run the mozilla-bin binary from either 
 ## mozilla/xpfe/bootstrap or mozilla/dist/bin.
 ##
@@ -65,16 +65,17 @@ if test -x "$run_moz"; then
   dist_bin="$curdir"
   found=1
 else
   here=`/bin/pwd`
   while [ -h "$progname" ]; do
     bn=`basename "$progname"`
     cd `dirname "$progname"`
     progname=`/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
+    progbase=`basename "$progname"`
     if [ ! -x "$progname" ]; then
       break
     fi
     curdir=`dirname "$progname"`
     run_moz="$curdir/run-mozilla.sh"
     if [ -x "$run_moz" ]; then
       cd "$curdir"
       dist_bin=`pwd`