This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 67189 - /tmp directory is hardcoded in nbexec script
Summary: /tmp directory is hardcoded in nbexec script
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 13:19 UTC by wojnicki
Modified: 2008-12-22 18:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojnicki 2005-10-20 13:19:17 UTC
nbexec script creates nbenv file in a temporary directory. For Unix systems the
directory name is hardcoded to be /tmp. Instead $TMPDIR env.variable should be
used, if exists.

line #195, which is:
    nbenvfile="/tmp/nbenv.$$"

should be changed to:

    if [ -z "$TMPDIR" ]; then
        TMPDIR=/tmp
    fi

    nbenvfile="$TMPDIR""/nbenv.$$"
Comment 1 _ lcincura 2005-10-24 16:16:41 UTC
Reassigning for evaluation
Comment 2 mslama 2005-10-24 16:23:19 UTC
Passing to core. It is platform launcher, nothing to do with installer.
Comment 3 Jan Chalupa 2005-10-24 19:47:50 UTC
Sounds like a reasonable suggestion. Yarda, can you take care of it?
Comment 4 Jaroslav Tulach 2005-10-25 06:18:59 UTC
"#67189: Using TMPDIR instead of hardcoded /tmp directory. As a result the 
launcher creates the temporary file in mine $HOME/tmp and not /tmp on my 
computer" 
 
Checking in arch/arch-core-launcher.xml; 
/cvs/core/arch/arch-core-launcher.xml,v  <--  arch-core-launcher.xml 
new revision: 1.38; previous revision: 1.37 
done 
Checking in launcher/unix/nbexec; 
/cvs/core/launcher/unix/nbexec,v  <--  nbexec 
new revision: 1.33; previous revision: 1.32