Closed
Bug 59865
Opened 25 years ago
Closed 24 years ago
Running mozilla via symbolic link is broken (patch)
Categories
(Core Graveyard :: Cmd-line Features, defect, P3)
Tracking
(Not tracked)
Future
People
(Reporter: burnus, Assigned: alecf)
Details
(Keywords: helpwanted)
Attachments
(1 file)
|
517 bytes,
patch
|
Details | Diff | Splinter Review |
Hi,
if you make a symbolic link to $MOZILLA/package/mozilla, e.g. like this:
ln -s /usr/local/mozilla/package/mozilla /usr/local/bin/mozilla
This will fail since you use:
dist_bin=`dirname $0`
this point in this cas to /usr/local/bin/ which is wrong
I replaced this line with:
FILE=$0
if test -L $0; then
FILE=`ls -l mozilla|cut -d '>' -f 2`
fi
dist_bin=`dirname $FILE`
A test on Linux and OFS1/Alpha showed that this works ok.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
I'm seemingly a bit sleepy, the bugreport is a mess (the patch is not). I retry
to make the problem clear:
One starts Mozilla with ..../package/mozilla. This file is a shell script, which
sets some variables concerning the path and tries to execute some files which
are located in same directory.
This will fail, if I don't execute this script directly, but execute a symbolic
link to it. Then it sets the variable to the place where the link is localed --
and since this is usually not the same directory (but /usr/local/bin/ or
$HOME/bin) it fails.
The proposed patch fixes this by getting the location of the real file.
I tested it successfully under Linux and made some tests with an older DEC Alpha
(OSF1) so it should work with all Unixes (but VMS, but that is not Unix ;-)
NB:
(a) I hope that I fixed the right file, I have "sometimes" problems with my
orientation on the CVS server
(b) I would rank this quite high: Two persons I know installed Mozilla that way
and it didn't work. The workaround is not that clear. And the fix should be
rather trival. (It may fail with very (!) old unices, but I doubt that
anyone runs Mozilla on them.)
Comment 3•25 years ago
|
||
Since Don has left, Vishy is taking his bugs in bulk, pending reassignment.
thanks,
Vishy
Assignee: don → vishy
Comment 4•25 years ago
|
||
Netscape Nav triage team: this is not a Netscape beta stopper.
Keywords: helpwanted,
nsbeta1-
Comment 5•25 years ago
|
||
would someone pls review the patch and see if it should be checked in? thx!
Keywords: review
Marking nsbeta1- bugs as future to get off the radar.
Target Milestone: --- → Future
Comment 7•25 years ago
|
||
->mcafee and clearing resolution. unless the patch has bit-rotted, could this
pls be reviewed?
Assignee: vishy → mcafee
Target Milestone: Future → ---
| Assignee | ||
Comment 9•24 years ago
|
||
Don't know if this patch even applies anymore. if someone is willing to go try
it out I'll take a look again... otherwise, just moving to FUTURE
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 10•24 years ago
|
||
Isn't this a duplicate of bug 57866?
Comment 11•24 years ago
|
||
*** This bug has been marked as a duplicate of 57866 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•23 years ago
|
Status: RESOLVED → VERIFIED
Comment 12•23 years ago
|
||
marking verified as a duplicate.
if you decide to reopen this bug, please clarify why.
search string for bugspam removal: SalviaGuaranitica
You need to log in
before you can comment on or make changes to this bug.
Description
•