git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a68d34
)
vfs_default: require fchmod()
author
Ralph Boehme
<slow@samba.org>
Fri, 9 Apr 2021 12:55:06 +0000
(14:55 +0200)
committer
Noel Power
<npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000
(22:27 +0000)
This has been part of POSIX for long enough in 2021.
Signed-off-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index 58891a2c1c316040c9fe81d8d02dc38deef8ebec..a5516cbca7d1145fd2f3ddffae9f7afdeeed032d 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-2425,12
+2425,8
@@
static int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t m
int result;
START_PROFILE(syscall_fchmod);
-#if defined(HAVE_FCHMOD)
+
result = fchmod(fsp_get_io_fd(fsp), mode);
-#else
- result = -1;
- errno = ENOSYS;
-#endif
END_PROFILE(syscall_fchmod);
return result;