summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r--source3/smbwrapper/wrapped.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index 502a2a9113..50f78ce005 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -622,8 +622,9 @@ __asm__(".globl _write; _write = write");
}
#endif
+#ifndef LINUX
int creat(const char *path, mode_t mode)
{
- /* drat, including sys/fcntl.h gives conflicts */
- return open(path, 01101, mode);
+ return open(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
}
+#endif