mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for
This commit is contained in:
parent
7fa1b878c1
commit
ced1f61ec1
@ -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
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user