diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-13 17:22:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-13 17:22:11 +0000 |
commit | 0cf349a642ef565bddb7db809bcf9492e44076fa (patch) | |
tree | 9fcf3008e8205d61a53c6346307b49c3f206a24c /usr.bin/mktemp | |
parent | 841e35f2c70582c7d6769a7e9f760a294315f37e (diff) |
Nuke paragraph about checking for zero length file. Doing things that
way would allow a race. Niall Smart <rotel@indigo.ie>
Diffstat (limited to 'usr.bin/mktemp')
-rw-r--r-- | usr.bin/mktemp/mktemp.1 | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/mktemp/mktemp.1 b/usr.bin/mktemp/mktemp.1 index f8622c6a3a9..e4fc0389b07 100644 --- a/usr.bin/mktemp/mktemp.1 +++ b/usr.bin/mktemp/mktemp.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mktemp.1,v 1.8 1998/03/19 06:13:37 millert Exp $ +.\" $OpenBSD: mktemp.1,v 1.9 1998/04/13 17:22:10 millert Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -53,7 +53,7 @@ any file name with some number of .Ql X Ns s appended to it, for example -.Pa /tmp/temp.XXXX . +.Pa /tmp/temp.XXXXXX . The trailing .Ql X Ns s are replaced with the current process number and/or a @@ -132,11 +132,6 @@ if [ $? -ne 0 ]; then exit 1 fi .Ed -.Pp -Note that one can also check to see that $TMPFILE is -zero length instead of checking $?. This would allow -the check to be done later one in the script (since -$? would get clobbered by the next shell command). .Sh SEE ALSO .Xr mktemp 3 , .Xr mkdtemp 3 , |