aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/tempname.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-03-30 03:30:38 +0000
committerUlrich Drepper <drepper@redhat.com>2008-03-30 03:30:38 +0000
commite8a3212650421c7970bc776b4609987bd47a8cdf (patch)
tree33b0ef355a7cf59ea1f8d95016c98de012be41c8 /sysdeps/posix/tempname.c
parent1e489af957dbf19c5080dc86c0a80ba6a47d009f (diff)
downloadglibc-e8a3212650421c7970bc776b4609987bd47a8cdf.tar
glibc-e8a3212650421c7970bc776b4609987bd47a8cdf.tar.gz
glibc-e8a3212650421c7970bc776b4609987bd47a8cdf.tar.bz2
glibc-e8a3212650421c7970bc776b4609987bd47a8cdf.zip
[BZ #5939]
* sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
Diffstat (limited to 'sysdeps/posix/tempname.c')
-rw-r--r--sysdeps/posix/tempname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index eab658da31..be979d8c8a 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -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;