summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-31 09:28:31 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-31 14:18:05 +0200
commit2ea963b260864b6a0b281c63d407c4e1df065abd (patch)
treeafb592d508b767e8b64512d610d2ce880c1b1956 /source3
parentd32876216472df5e1e8ad7c0640fb80e7a868fbf (diff)
downloadsamba-2ea963b260864b6a0b281c63d407c4e1df065abd.tar.gz
samba-2ea963b260864b6a0b281c63d407c4e1df065abd.tar.bz2
samba-2ea963b260864b6a0b281c63d407c4e1df065abd.zip
s3:vfs_hpuxacl: remove unused file_find_fd() calls
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_hpuxacl.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c
index 5acfd1e25b..1b5d8d087d 100644
--- a/source3/modules/vfs_hpuxacl.c
+++ b/source3/modules/vfs_hpuxacl.c
@@ -191,14 +191,6 @@ SMB_ACL_T hpuxacl_sys_acl_get_fd(vfs_handle_struct *handle,
/*
* HPUX doesn't have the facl call. Fake it using the path.... JRA.
*/
- /* For all I see, the info should already be in the fsp
- * parameter, but get it again to be safe --- necessary? */
- files_struct *file_struct_p = file_find_fd(fsp->conn->sconn,
- fsp->fh->fd);
- if (file_struct_p == NULL) {
- errno = EBADF;
- return NULL;
- }
/*
* We know we're in the same conn context. So we
* can use the relative path.
@@ -207,7 +199,7 @@ SMB_ACL_T hpuxacl_sys_acl_get_fd(vfs_handle_struct *handle,
"hpuxacl_sys_acl_get_file (no facl syscall on HPUX).\n"));
return hpuxacl_sys_acl_get_file(handle,
- file_struct_p->fsp_name->base_name,
+ fsp->fsp_name->base_name,
SMB_ACL_TYPE_ACCESS);
}
@@ -331,14 +323,6 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle,
/*
* HPUX doesn't have the facl call. Fake it using the path.... JRA.
*/
- /* For all I see, the info should already be in the fsp
- * parameter, but get it again to be safe --- necessary? */
- files_struct *file_struct_p = file_find_fd(fsp->conn->sconn,
- fsp->fh->fd);
- if (file_struct_p == NULL) {
- errno = EBADF;
- return -1;
- }
/*
* We know we're in the same conn context. So we
* can use the relative path.
@@ -347,7 +331,7 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle,
"hpuxacl_sys_acl_set_file (no facl syscall on HPUX)\n"));
return hpuxacl_sys_acl_set_file(handle,
- file_struct_p->fsp_name->base_name,
+ fsp->fsp_name->base_name,
SMB_ACL_TYPE_ACCESS, theacl);
}