[Libsysio-commit] HEAD: libsysio/src open.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2005-08-03 13:46:26
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26427 Modified Files: open.c Log Message: The CREAT intent flag was only being set if the caller specified O_EXCL. Changed so that it is set withonly O_CREAT specified. Index: open.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/open.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -b -B -p -r1.24 -r1.25 --- open.c 25 Jan 2005 00:37:14 -0000 1.24 +++ open.c 3 Aug 2005 13:46:10 -0000 1.25 @@ -162,14 +162,8 @@ SYSIO_INTERFACE_NAME(open)(const char *p #endif va_end(ap); mode &= ~(_sysio_umask & 0777) | 07000; /* apply umask */ - - if (flags & O_EXCL) { - /* - * Tell others we intend to create this file. - */ intent.int_opmask |= INT_CREAT; } - } #ifdef O_NOFOLLOW if (flags & O_NOFOLLOW) ndflags |= ND_NOFOLLOW; |