mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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
This commit is contained in:
parent
461a1172ff
commit
3227b110d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user