This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
posix/wordexp-tst.sh
- To: libc-alpha at sources dot redhat dot com
- Subject: posix/wordexp-tst.sh
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Mon, 9 Oct 2000 23:44:56 +0100 (BST)
posix/wordexp-tst.sh leaves its output files behind in TMPDIR after
running, if TMPDIR is set. If TMPDIR were set to a shared directory for
some reason (e.g. set to /var/tmp because of /tmp being full), the usual
symlink attacks also apply.
Suggested fix: always create the wordexp-test-result files in the build
directory; ignore TMPDIR. "make clean" will remove them from there so
there's no need for the script to clean them up itself.
--
Joseph S. Myers
jsm28@cam.ac.uk