Issue 36210 - Installation into a different directory fails because mktemp fails
Summary: Installation into a different directory fails because mktemp fails
Status: CONFIRMED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 1.1.3
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-10-27 14:28 UTC by rwessman
Modified: 2013-07-30 02:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rwessman 2004-10-27 14:28:12 UTC
If an install is attempted into a directory which is different from where the
software is unpacked (e.g. /Install/OOo_1.1.3_LinuxIntel_install/install
--prefix=/opt), it fails.
Mktemp is failing because it is called with the following:
/tmp/$0.XXXXXX
Since $0 contains slashes, mktemp fails.
Here's a proposed patch:
$ diff -c install install.orig
*** install     Wed Oct 27 09:24:20 2004
--- install.orig        Fri Sep 10 08:41:52 2004
***************
*** 104,111 ****
  # for more information, please see:
  # www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html

! TMPFILENAME='/tmp/'`basename $0`.'.XXXXXX'
! TMPFILE=`mktemp -q $TMPFILENAME`
  if [ $? -ne 0 ]; then
       echo "$0: Can't create temp file, exiting..."
       exit 1
--- 104,110 ----
  # for more information, please see:
  # www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html

! TMPFILE=`mktemp -q /tmp/$0.XXXXXX`
  if [ $? -ne 0 ]; then
       echo "$0: Can't create temp file, exiting..."
       exit 1
$
Comment 1 flibby05 2004-10-30 16:05:54 UTC
setting to NEW, because issue sounds reasonable and average volunteer from QA
team cannot do much about this.
Comment 2 Olaf Felka 2004-11-16 08:20:37 UTC
Please have a look
Comment 3 flibby05 2005-03-16 11:27:52 UTC
issue obsolete because OOo will switch to native installers with 2.0?
Comment 4 Rob Weir 2013-07-30 02:23:13 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.