>From ebdecbd45156c5525fe2483982c77fab484bb946 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 2 Feb 2013 20:58:32 +0100 Subject: [PATCH] fix O_RDWR not being passed to mkostemps --- src/temp/mkstemp.c | 3 ++- src/temp/mkstemps.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/temp/mkstemp.c b/src/temp/mkstemp.c index 07ec4d7..17bfcbb 100644 --- a/src/temp/mkstemp.c +++ b/src/temp/mkstemp.c @@ -1,10 +1,11 @@ #include "libc.h" +#include int __mkostemps (char *template, int suffixlen, int flags); int mkstemp(char *template) { - return __mkostemps(template, 0, 0); + return __mkostemps(template, 0, O_RDWR); } LFS64(mkstemp); diff --git a/src/temp/mkstemps.c b/src/temp/mkstemps.c index 6d16d9c..caad441 100644 --- a/src/temp/mkstemps.c +++ b/src/temp/mkstemps.c @@ -1,10 +1,11 @@ +#include #include "libc.h" int __mkostemps (char *template, int suffixlen, int flags); int mkstemps (char *template, int suffixlen) { - return __mkostemps(template, suffixlen, 0); + return __mkostemps(template, suffixlen, O_RDWR); } LFS64(mkstemps); -- 1.7.3.4