summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 13:44:37 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 15:59:02 +0100
commite614dec27f33c932c6c29c806d567fd6015cd5e6 (patch)
treec597b29eee25c363791bfda777da0f70034ce47a /source3/smbd
parent87a684f7fcfa8d9fabc42e33981299d0b33eeeb7 (diff)
downloadsamba-e614dec27f33c932c6c29c806d567fd6015cd5e6.tar.gz
samba-e614dec27f33c932c6c29c806d567fd6015cd5e6.tar.bz2
samba-e614dec27f33c932c6c29c806d567fd6015cd5e6.zip
Remove redundant parameter fd from SMB_VFS_FCHMOD().
Michael (This used to be commit a54d5604da556d1250ca9948d4acc4a187a9fede)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dosmode.c2
-rw-r--r--source3/smbd/open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index a96f80ee0e..d3813f9b41 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -538,7 +538,7 @@ int file_set_dosmode(connection_struct *conn, const char *fname,
if (!NT_STATUS_IS_OK(open_file_fchmod(conn,fname,st,&fsp)))
return -1;
become_root();
- ret = SMB_VFS_FCHMOD(fsp, fsp->fh->fd, unixmode);
+ ret = SMB_VFS_FCHMOD(fsp, unixmode);
unbecome_root();
close_file_fchmod(fsp);
if (!newfile) {
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index d870374835..c7b053d531 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1915,7 +1915,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn,
}
if ((ret == -1) &&
- (SMB_VFS_FCHMOD(fsp, fsp->fh->fd, new_unx_mode) == -1))
+ (SMB_VFS_FCHMOD(fsp, new_unx_mode) == -1))
DEBUG(5, ("open_file_ntcreate: failed to reset "
"attributes of file %s to 0%o\n",
fname, (unsigned int)new_unx_mode));