summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 00:32:09 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 00:32:09 +0000
commit791b837af196c895d17512a9a72e293f0c4ef32e (patch)
tree025b246680d9a714cea89c35c8aabdf75aa7c3a3 /source3/smbwrapper/wrapped.c
parentdde4b88a02493b86b9a74fc9685e423d88101fbf (diff)
downloadsamba-791b837af196c895d17512a9a72e293f0c4ef32e.tar.gz
samba-791b837af196c895d17512a9a72e293f0c4ef32e.tar.bz2
samba-791b837af196c895d17512a9a72e293f0c4ef32e.zip
don't define creat() under linux until we get the CREAT_BITS stuff
sorted out. (This used to be commit 86b66d92772d4a72b7b8c7f2d8d793533d7f6130)
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