2003-06-04 Ben Elliston <bje@wasabisystems.com>

* config.guess (set_cc_for_build): Allow insecure temporary
	filenames to be generated on systems without mktemp(1) or $RANDOM,
	but issue a warning to standard error.  Suggested by Hans-Peter
	Nilsson.
This commit is contained in:
Ben Elliston 2003-06-06 02:37:40 +00:00
parent 3a3ba493ff
commit d8c3abeb62
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2003-06-04 Ben Elliston <bje@wasabisystems.com>
* config.guess (set_cc_for_build): Allow insecure temporary
filenames to be generated on systems without mktemp(1) or $RANDOM,
but issue a warning to standard error. Suggested by Hans-Peter
Nilsson.
2003-05-24 Ben Elliston <bje@wasabisystems.com>
* config.sub: Handle $os values of -nx6 and -nx7.

3
config.guess vendored
View File

@ -3,7 +3,7 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
timestamp='2003-05-22'
timestamp='2003-06-04'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -106,6 +106,7 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;