Bug 147032 - /usr/bin/java has multiple problems
/usr/bin/java has multiple problems
Product: Fedora
Classification: Fedora
Component: java-1.4.2-gcj-compat (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Fitzsimmons
Depends On:
  Show dependency treegraph
Reported: 2005-02-03 16:04 EST by Ulrich Drepper
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-08 16:31:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch which at least works with eclipse (1.34 KB, patch)
2005-02-03 17:08 EST, Ulrich Drepper
no flags Details | Diff

  None (edit)
Description Ulrich Drepper 2005-02-03 16:04:00 EST
Description of problem:
I assume the /usr/bin/java script comes from gcc (gij).  If not, reassign.

The script has multiple problems:
~ a /tmp/javaXXXXXX file is left behind
~ the script assumes /tmp is executable (which it shouldn't be)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.have /tmp on a separate partition
2.mount with noexec
3.run /usr/bin/java
Actual results:
strange error message

Expected results:
running interpreter

Additional info:
I don't see any reason to use a file at all.  This should take care of both
problems.  Just construct one or more strings with all the parameters neded.
Comment 1 Ulrich Drepper 2005-02-03 17:08:31 EST
Created attachment 110629 [details]
patch which at least works with eclipse

This patch make eclipse start up without creating a temporary file.  The
various sed commands added to enable the use of a separate command can go.  I
might have screwed up some quoting but I wouldn't think so.
Comment 2 Thomas Fitzsimmons 2005-02-08 16:31:00 EST
Patch applied to java-1.4.2-gcj4-compat-

Note You need to log in before you can comment on or make changes to this bug.