summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-05-12 16:03:16 +0000
committerAlexander Bokovoy <ab@samba.org>2003-05-12 16:03:16 +0000
commitc9bfb7660bf60d32c51bfe368ce874770adb6f10 (patch)
tree8236542fe05d4ce2e9ba4f615daab2ed7bdf4f2b /source3/smbd/open.c
parented1c7282e45b9b962bc2e77a544719bbc506f294 (diff)
downloadsamba-c9bfb7660bf60d32c51bfe368ce874770adb6f10.tar.gz
samba-c9bfb7660bf60d32c51bfe368ce874770adb6f10.tar.bz2
samba-c9bfb7660bf60d32c51bfe368ce874770adb6f10.zip
Eliminate NULL pointers from VFS interface. All hooks now really callable, producing either correct result or returning error if the feature isn't supported in the configuration
(This used to be commit af0a17349e6986eef2e2fd07b4b9f0bcd33bbe1f)
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 412a0dfc50..959439a1b2 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1146,7 +1146,7 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
* selected.
*/
- if (!file_existed && !def_acl && (conn->vfs.ops.fchmod_acl != NULL)) {
+ if (!file_existed && !def_acl) {
int saved_errno = errno; /* We might get ENOSYS in the next call.. */
@@ -1159,7 +1159,7 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
/* Attributes need changing. File already existed. */
- if (conn->vfs.ops.fchmod_acl != NULL) {
+ {
int saved_errno = errno; /* We might get ENOSYS in the next call.. */
ret = VFS_FCHMOD_ACL(fsp, fsp->fd, new_mode);