To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=112542
                 Issue #|112542
                 Summary|soffice doesn't do enough to resolve $0 symlink
               Component|framework
                 Version|OOo 3.2
                Platform|Other
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|scripting
             Assigned to|mba
             Reported by|pooryorick





------- Additional comments from [email protected] Sun Jun 20 04:57:15 
+0000 2010 -------
the symlink resolution for soffice is only one level deep.  That's kind of
pitiful. Here's a patch to get the job done more thoroughly:

--- soffice     2010-06-20 00:24:30.959241000 -0400
+++ soffice.new 2010-06-20 00:41:57.870453000 -0400
@@ -46,15 +46,14 @@
 fi
 
 # resolve installation directory
-sd_cwd="`pwd`"
-if [ -h "$0" ] ; then
-       sd_basename=`basename "$0"`
-       sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
-    cd "`dirname "$0"`"
-    cd "`dirname "$sd_script"`"
-else
-    cd "`dirname "$0"`"
-fi
+sd_cwd=`pwd`
+sd_me="$0"
+while [ -h "$sd_me" ] ; do
+       cd `dirname "$sd_me"`
+       sd_basename=`basename "$sd_me"`
+       sd_me=`ls -l "$sd_basename" | sed "s/.*${sd_basename} -> //g"`
+done
+cd `dirname "$sd_me"`
 sd_prog=`pwd`
 cd "$sd_cwd"

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to