(__gen_tempname): Correct flag selection.
authordrepper <drepper>
Sun, 30 Mar 2008 03:30:25 +0000 (03:30 +0000)
committerdrepper <drepper>
Sun, 30 Mar 2008 03:30:25 +0000 (03:30 +0000)
sysdeps/posix/tempname.c

index eab658d..be979d8 100644 (file)
@@ -297,7 +297,7 @@ __gen_tempname (char *tmpl, int flags, int kind)
        {
        case __GT_FILE:
          fd = __open (tmpl,
-                      (flags & ~ACCESSPERMS)
+                      (flags & ~O_ACCMODE)
                       | O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
          break;