From 791b837af196c895d17512a9a72e293f0c4ef32e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Oct 1998 00:32:09 +0000 Subject: don't define creat() under linux until we get the CREAT_BITS stuff sorted out. (This used to be commit 86b66d92772d4a72b7b8c7f2d8d793533d7f6130) --- source3/smbwrapper/wrapped.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbwrapper/wrapped.c') 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 -- cgit