summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_default.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-08 01:14:24 +0100
committerMichael Adam <obnox@samba.org>2008-01-08 01:14:24 +0100
commitb2182c11eab0e1b2f0acb5d82aec86d4598573eb (patch)
treeafcdbd523fdce750ae9569808ceb68b59649e8db /source3/modules/vfs_default.c
parent65fc5dbedd1b858d7406e4691e2ecc663ba756ce (diff)
downloadsamba-b2182c11eab0e1b2f0acb5d82aec86d4598573eb.tar.gz
samba-b2182c11eab0e1b2f0acb5d82aec86d4598573eb.tar.bz2
samba-b2182c11eab0e1b2f0acb5d82aec86d4598573eb.zip
Remove redundant parameter fd from SMB_VFS_FCHMOD_ACL().
Michael (This used to be commit 7b201c177b3668f54751ba17d6a0b53ed913e7f7)
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r--source3/modules/vfs_default.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index d909b0475a..f820d4b3e2 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -563,7 +563,7 @@ static int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t m
{
int saved_errno = errno; /* We might get ENOSYS */
- if ((result = SMB_VFS_FCHMOD_ACL(fsp, fsp->fh->fd, mode)) == 0) {
+ if ((result = SMB_VFS_FCHMOD_ACL(fsp, mode)) == 0) {
END_PROFILE(syscall_fchmod);
return result;
}
@@ -1002,7 +1002,7 @@ static int vfswrap_chmod_acl(vfs_handle_struct *handle, const char *name, mode_
#endif
}
-static int vfswrap_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, int fd, mode_t mode)
+static int vfswrap_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
{
#ifdef HAVE_NO_ACL
errno = ENOSYS;
@@ -1011,7 +1011,7 @@ static int vfswrap_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, int
int result;
START_PROFILE(fchmod_acl);
- result = fchmod_acl(fsp, fd, mode);
+ result = fchmod_acl(fsp, mode);
END_PROFILE(fchmod_acl);
return result;
#endif