Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
50f5f793
Commit
50f5f793
authored
Oct 02, 2001
by
Joseph Myers
Committed by
Joseph Myers
Oct 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure: Handle temporary files securely using mkdir.
From-SVN: r45939
parent
357e3f3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
ChangeLog
+4
-0
configure
+8
-6
No files found.
ChangeLog
View file @
50f5f793
2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
* configure: Handle temporary files securely using mkdir.
2001-09-29 Alexandre Oliva <aoliva@redhat.com>
2001-09-29 Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
...
...
configure
View file @
50f5f793
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
### WARNING: this file contains embedded tabs. Do not run untabify on this file.
### WARNING: this file contains embedded tabs. Do not run untabify on this file.
# Configuration script
# Configuration script
# Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
# Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
, 2000, 2001
# Free Software Foundation, Inc.
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
...
@@ -89,7 +89,7 @@ subdirs=
...
@@ -89,7 +89,7 @@ subdirs=
target_alias
=
NOTARGET
target_alias
=
NOTARGET
target_makefile_frag
=
target_makefile_frag
=
undefs
=
NOUNDEFS
undefs
=
NOUNDEFS
version
=
"
$Revision
: 1.3
5
$"
version
=
"
$Revision
: 1.3
6
$"
x11
=
default
x11
=
default
bindir
=
'${exec_prefix}/bin'
bindir
=
'${exec_prefix}/bin'
sbindir
=
'${exec_prefix}/sbin'
sbindir
=
'${exec_prefix}/sbin'
...
@@ -663,13 +663,15 @@ case "${TMPDIR}" in
...
@@ -663,13 +663,15 @@ case "${TMPDIR}" in
esac
esac
# keep this filename short for &%*%$*# 14 char file names and 8+3 file names
# keep this filename short for &%*%$*# 14 char file names and 8+3 file names
tmpfile
=
${
TMPDIR
}
/cNf
$$
tmpdir
=
${
TMPDIR
}
/cNf
$$
mkdir
${
tmpdir
}
||
exit
1
tmpfile
=
${
tmpdir
}
/cNf
$$
# Note that under many versions of sh a trap handler for 0 will *override* any
# Note that under many versions of sh a trap handler for 0 will *override* any
# exit status you explicitly specify! At this point, the only non-error exit
# exit status you explicitly specify! At this point, the only non-error exit
# is at the end of the script; these actions are duplicated there, minus
# is at the end of the script; these actions are duplicated there, minus
# the "exit 1". Don't use "exit 0" anywhere after this without resetting the
# the "exit 1". Don't use "exit 0" anywhere after this without resetting the
# trap handler, or you'll lose.
# trap handler, or you'll lose.
trap
"rm -
f Makefile.tem
${
tmpfile
}
.com
${
tmpfile
}
.tgt
${
tmpfile
}
.hst
${
tmpfile
}
.pos
; exit 1"
0 1 2 15
trap
"rm -
rf Makefile.tem
${
tmpdir
}
; exit 1"
0 1 2 15
# split ${srcdir}/configure.in into common, per-host, per-target,
# split ${srcdir}/configure.in into common, per-host, per-target,
# and post-target parts. Post-target is optional.
# and post-target parts. Post-target is optional.
...
@@ -696,7 +698,7 @@ if test -f skip-this-dir; then
...
@@ -696,7 +698,7 @@ if test -f skip-this-dir; then
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
# and reset the trap handler.
trap
0
trap
0
rm
-
f
Makefile
*
${
tmpfile
}
.com
${
tmpfile
}
.tgt
${
tmpfile
}
.hst
${
tmpfile
}
.pos
rm
-
rf
Makefile
*
${
tmpdir
}
# Execute the final clean-up actions
# Execute the final clean-up actions
${
config_shell
}
skip-this-dir
${
config_shell
}
skip-this-dir
# and stop configuring this directory.
# and stop configuring this directory.
...
@@ -1600,7 +1602,7 @@ fi
...
@@ -1600,7 +1602,7 @@ fi
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
# and reset the trap handler.
rm
-
f
${
tmpfile
}
.com
${
tmpfile
}
.tgt
${
tmpfile
}
.hst
${
tmpfile
}
.pos
rm
-
rf
${
tmpdir
}
trap
0
trap
0
exit
0
exit
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment