summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 12:41:41 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commitced1f61ec12e752045c3c3611f5bf0816a1458e5 (patch)
treed3060542343442865fb31a81ea861a10ef4b8999
parent7fa1b878c1b856d732b08cfefaa1425c0cff158b (diff)
downloadsamba-ced1f61ec12e752045c3c3611f5bf0816a1458e5.tar.gz
samba-ced1f61ec12e752045c3c3611f5bf0816a1458e5.tar.bz2
samba-ced1f61ec12e752045c3c3611f5bf0816a1458e5.zip
build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for
-rw-r--r--source3/lib/system.c8
1 files changed, 0 insertions, 8 deletions
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
}
/*******************************************************************