summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/temp/mkostemps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/temp/mkostemps.c b/src/temp/mkostemps.c
index 7f8492a1..512b5f18 100644
--- a/src/temp/mkostemps.c
+++ b/src/temp/mkostemps.c
@@ -15,6 +15,7 @@ int __mkostemps(char *template, int len, int flags)
return -1;
}
+ flags -= flags & O_ACCMODE;
int fd, retries = 100;
do {
__randname(template+l-len-6);