[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash-2.05 patch 1
From: |
Chet Ramey |
Subject: |
Bash-2.05 patch 1 |
Date: |
Wed, 11 Apr 2001 13:57:13 -0400 |
BASH PATCH REPORT
=================
Bash-Release: 2.05
Patch-ID: bash205-001
Bug-Reported-by: root@sexorcisto.net
Bug-Reference-ID: <E14mmhG-0006wF-00@sexorcisto.net>
Bug-Description:
bashbug uses mktemp(1) to create a temporary file name for the bug report,
if it exists. Unfortunately, it uses options not supported by all
implementations, causing bashbug to fail on several types of systems,
including Linux. This patch allows the bug report template to be created
and edited on Linux systems. (Along for free is support for $TMPDIR
instead of hardcoding /tmp.)
Patch:
*** ../bash-2.05/support/bashbug.sh Wed Mar 28 08:19:45 2001
--- support/bashbug.sh Tue Apr 10 08:57:15 2001
***************
*** 24,31 ****
# If the OS supplies a program to make temp files with semi-random names,
# use it.
! TEMP=/tmp/bbug.$$
for d in /bin /usr/bin /usr/local/bin ; do
if [ -x $d/mktemp ]; then
! TEMP=`$d/mktemp -t bbug ` ; break;
elif [ -x $d/tempfile ]; then
TEMP=` $d/tempfile --prefix bbug --mode 600 `; break
--- 24,32 ----
# If the OS supplies a program to make temp files with semi-random names,
# use it.
! : ${TMPDIR:=/tmp}
! TEMP=$TMPDIR/bbug.$$
for d in /bin /usr/bin /usr/local/bin ; do
if [ -x $d/mktemp ]; then
! TEMP=`$d/mktemp $TMPDIR/bbug.XXXXXX ` ; break;
elif [ -x $d/tempfile ]; then
TEMP=` $d/tempfile --prefix bbug --mode 600 `; break
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bash-2.05 patch 1,
Chet Ramey <=