diff options
author | 1998-04-13 17:22:10 +0000 | |
---|---|---|
committer | 1998-04-13 17:22:10 +0000 | |
commit | 28a6ff386987b3b1a23635c8e4098558321d663e (patch) | |
tree | bf59b0f7ed90e991ef8523f7ccd943df9dd64c9b | |
parent | ls -F the zoneinfo files, shows what is a zone-dir and what is a zone-file (diff) | |
download | wireguard-openbsd-28a6ff386987b3b1a23635c8e4098558321d663e.tar.xz wireguard-openbsd-28a6ff386987b3b1a23635c8e4098558321d663e.zip |
Nuke paragraph about checking for zero length file. Doing things that
way would allow a race. Niall Smart <rotel@indigo.ie>
-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 , |