summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 14:26:00 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 15:59:02 +0100
commit670909cb07e38a06bf5db12342b3b1189f0e1ab7 (patch)
treeba1a45db0387a252dc22c77b42fdfa642288562b /source3/smbd
parente614dec27f33c932c6c29c806d567fd6015cd5e6 (diff)
downloadsamba-670909cb07e38a06bf5db12342b3b1189f0e1ab7.tar.gz
samba-670909cb07e38a06bf5db12342b3b1189f0e1ab7.tar.bz2
samba-670909cb07e38a06bf5db12342b3b1189f0e1ab7.zip
Remove redundant parameter fd from SMB_VFS_FCHOWN().
Michael (This used to be commit fbb193db3e0dc51cb000ae406a68bc547f31d9ab)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
-rw-r--r--source3/smbd/posix_acls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index c7b053d531..036e3e12a2 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -102,7 +102,7 @@ static void change_file_owner_to_parent(connection_struct *conn,
}
become_root();
- ret = SMB_VFS_FCHOWN(fsp, fsp->fh->fd, parent_st.st_uid, (gid_t)-1);
+ ret = SMB_VFS_FCHOWN(fsp, parent_st.st_uid, (gid_t)-1);
unbecome_root();
if (ret == -1) {
DEBUG(0,("change_file_owner_to_parent: failed to fchown "
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index f11aa69e08..1aa3001923 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3194,7 +3194,7 @@ int try_chown(connection_struct *conn, const char *fname, uid_t uid, gid_t gid)
become_root();
/* Keep the current file gid the same. */
- ret = SMB_VFS_FCHOWN(fsp, fsp->fh->fd, uid, (gid_t)-1);
+ ret = SMB_VFS_FCHOWN(fsp, uid, (gid_t)-1);
unbecome_root();
close_file_fchmod(fsp);