[Libsysio-commit] HEAD: libsysio/src open.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-04-01 15:38:19
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6680 Modified Files: open.c Log Message: Fix application of umask in open. From Kevin Pedretti. Index: open.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/open.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -b -B -p -r1.14 -r1.15 --- open.c 25 Feb 2004 16:24:00 -0000 1.14 +++ open.c 1 Apr 2004 15:26:20 -0000 1.15 @@ -157,7 +157,7 @@ open(const char *path, int flags, ...) va_arg(ap, int); #endif va_end(ap); - mode &= ~_sysio_umask & 0777; /* apply umask */ + mode &= ~(_sysio_umask & 0777); /* apply umask */ if (flags & O_EXCL) { /* |