diff options
author | Jeremy Allison <jra@samba.org> | 2018-04-09 09:32:23 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-04-11 11:52:25 +0200 |
commit | 7abe54b57f65c4e89ca34178690c3b19c1e4626f (patch) | |
tree | 9b62aa07a1a6a5c87b93db61bd27bec224e5dd0a /source3 | |
parent | bc11f2851af7e71c91f90224c90528f2c7755f6a (diff) | |
download | samba-7abe54b57f65c4e89ca34178690c3b19c1e4626f.tar.gz |
s3: smbd: Unix extensions attempts to change wrong field in fchown call.
Cut and paste error.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13375
Reported-by: Rungta, Vandana <vrungta@amazon.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Apr 10 00:45:56 CEST 2018 on sn-devel-144
(cherry picked from commit 3227b110d065500ed84fc70063da70ab35823a2e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 512918efc89..0b62fd4f875 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7777,10 +7777,10 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn, DEBUG(10,("smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC " "changing group %u for file %s\n", - (unsigned int)set_owner, + (unsigned int)set_grp, smb_fname_str_dbg(smb_fname))); if (fsp && fsp->fh->fd != -1) { - ret = SMB_VFS_FCHOWN(fsp, set_owner, (gid_t)-1); + ret = SMB_VFS_FCHOWN(fsp, (uid_t)-1, set_grp); } else { /* * UNIX extensions calls must always operate |