Typo O_EXECL -> O_EXCL

This commit is contained in:
Guido van Rooij 2001-09-18 11:59:16 +00:00
parent 2955556448
commit 38f9b90bb7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=10727
3 changed files with 9 additions and 9 deletions

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [
<!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $">
<!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $ -->
<!-- $FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $ -->
<html>
&header;
@ -379,7 +379,7 @@ Also make sure to look for races in /tmp in general, being aware that
there are very few things which can be atomic in /tmp:
<UL>
<LI>Creating a directory. This will either succeed or fail.</LI>
<LI>Opening a file O_CREAT | O_EXECL</LI>
<LI>Opening a file O_CREAT | O_EXCL</LI>
</UL>
If you use mkstemp() the above cases will be properly handled for you. Hence
all temp files should use mkstemp() to guarantee there is not race

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [
<!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $">
<!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $ -->
<!-- $FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $ -->
<html>
&header;
@ -379,7 +379,7 @@ Also make sure to look for races in /tmp in general, being aware that
there are very few things which can be atomic in /tmp:
<UL>
<LI>Creating a directory. This will either succeed or fail.</LI>
<LI>Opening a file O_CREAT | O_EXECL</LI>
<LI>Opening a file O_CREAT | O_EXCL</LI>
</UL>
If you use mkstemp() the above cases will be properly handled for you. Hence
all temp files should use mkstemp() to guarantee there is not race

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [
<!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $">
<!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.67 2001/08/23 21:03:59 kris Exp $ -->
<!-- $FreeBSD: www/en/security/security.sgml,v 1.68 2001/09/06 21:40:49 kris Exp $ -->
<html>
&header;
@ -379,7 +379,7 @@ Also make sure to look for races in /tmp in general, being aware that
there are very few things which can be atomic in /tmp:
<UL>
<LI>Creating a directory. This will either succeed or fail.</LI>
<LI>Opening a file O_CREAT | O_EXECL</LI>
<LI>Opening a file O_CREAT | O_EXCL</LI>
</UL>
If you use mkstemp() the above cases will be properly handled for you. Hence
all temp files should use mkstemp() to guarantee there is not race