git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fa1b87
)
build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 28 Mar 2012 01:41:41 +0000
(12:41 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 5 Apr 2012 00:39:08 +0000
(
02:39
+0200)
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index fab87da182f2ffe828a3c7e31394f9ffb0cc7c3b..1028e32b9661da51ce004cf834ad2616a5631621 100644
(file)
--- 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
}
/*******************************************************************