diff options
author | Jeremy Allison <jra@samba.org> | 2019-06-13 16:17:49 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-06-24 18:49:09 +0000 |
commit | 72605195010b8941c28d587079e994cb5c434b17 (patch) | |
tree | 5fc13820dd749c3707250f561191c3c56f8a9c60 /source3 | |
parent | bf743b01d8d66d9e7622153a76f365babcf03006 (diff) | |
download | samba-72605195010b8941c28d587079e994cb5c434b17.tar.gz |
s3: smbd: Now we always have a handle in smb_set_posix_acl(), use it instead of smb_fname.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/trans2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index bcb40b3ccba..b87efc6d983 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7375,14 +7375,14 @@ static NTSTATUS smb_set_posix_acl(connection_struct *conn, /* Here we know fsp != NULL */ SMB_ASSERT(fsp != NULL); - status = refuse_symlink(conn, fsp, smb_fname); + status = refuse_symlink(conn, fsp, fsp->fsp_name); if (!NT_STATUS_IS_OK(status)) { goto out; } DBG_DEBUG("file %s num_file_acls = %"PRIu16", " "num_def_acls = %"PRIu16"\n", - smb_fname ? smb_fname_str_dbg(smb_fname) : fsp_str_dbg(fsp), + fsp_str_dbg(fsp), num_file_acls, num_def_acls); @@ -7392,7 +7392,7 @@ static NTSTATUS smb_set_posix_acl(connection_struct *conn, if (valid_file_acls) { bool ok = set_unix_posix_acl(conn, fsp, - smb_fname, + fsp->fsp_name, num_file_acls, pdata); if (!ok) { @@ -7406,7 +7406,7 @@ static NTSTATUS smb_set_posix_acl(connection_struct *conn, if (valid_def_acls) { bool ok = set_unix_posix_default_acl(conn, - smb_fname, + fsp->fsp_name, num_def_acls, pdata); if (!ok) { |