| Summary: | [PATCH] prevent possible race condition in lorder.sh | ||
|---|---|---|---|
| Product: | Base System | Reporter: | spock <spock> |
| Component: | bin | Assignee: | hoek |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->hoek Currently running the proposed change through world. State Changed From-To: open->closed Appliesd to -current, merge pending. |
lorder.sh should use harder to predict tempfiles instead of: /tmp/_reference_{pid} /tmp/_symbol_{pid} Fix: apply patch and recompile. # temporary files -R=/tmp/_reference_$$ -S=/tmp/_symbol_$$ +R=`mktemp /tmp/_reference_XXXXXXXXXX` +S=`mktemp /tmp/_symbol_XXXXXXXXXX` # remove temporary files on HUP, INT, QUIT, PIPE, TERM trap "rm -f $R $S; exit 1" 1 2 3 13 15--Otzfor68SG94vocLz4splCd7UTyqM7ouDVuT0fiRYnkLG0Ps Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" Index: usr.bin/lorder/lorder.sh =================================================================== RCS file: /home/ncvs/src/usr.bin/lorder/lorder.sh,v retrieving revision 1.2 diff -u -r1.2 lorder.sh --- lorder.sh 1998/08/15 07:10:21 1.2 +++ lorder.sh 2000/01/29 20:13:45 @@ -45,8 +45,8 @@ esac How-To-Repeat: run lorder