build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Mar 2012 01:41:41 +0000 (12:41 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2012 00:39:08 +0000 (02:39 +0200)
source3/lib/system.c

index fab87da182f2ffe828a3c7e31394f9ffb0cc7c3b..1028e32b9661da51ce004cf834ad2616a5631621 100644 (file)
@@ -590,15 +590,7 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OF
 
 int sys_creat(const char *path, mode_t mode)
 {
-#if defined(HAVE_CREAT)
        return creat(path, mode);
-#else
-       /*
-        * If creat isn't defined then ensure we call open with the expected flags.
-        *
-        */
-       return sys_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
-#endif
 }
 
 /*******************************************************************