From ced1f61ec12e752045c3c3611f5bf0816a1458e5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 12:41:41 +1100 Subject: build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for --- source3/lib/system.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/system.c b/source3/lib/system.c index fab87da182..1028e32b96 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -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 } /******************************************************************* -- cgit