From: Jeremy Allison Date: Mon, 9 Apr 2018 16:32:23 +0000 (-0700) Subject: s3: smbd: Unix extensions attempts to change wrong field in fchown call. X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=3227b110d065500ed84fc70063da70ab35823a2e 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 Signed-off-by: Jeremy Allison Reviewed-by: David Disseldorp Autobuild-User(master): David Disseldorp Autobuild-Date(master): Tue Apr 10 00:45:56 CEST 2018 on sn-devel-144 --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index b49c3ca7836f..af7a0d724842 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7778,10 +7778,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