smbd: convert inherit_access_posix_acl() arg parent_dir to struct smb_filename
authorRalph Boehme <slow@samba.org>
Wed, 29 Apr 2020 08:56:23 +0000 (10:56 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 29 Apr 2020 16:39:41 +0000 (16:39 +0000)
commitbf504ac3c6421757c1aa2822b3ffa5212e1e87f7
tree2e998758a5442033eeee0125dfec38036a771d6c
parent0ff2dda37d34338f2b931839815a21269ab1626a
smbd: convert inherit_access_posix_acl() arg parent_dir to struct smb_filename

This also fixes a bug introduced by cea8e57eac2ed7b90a5c5d207bf392ff0546398e
where inherit_access_posix_acl() used the smb_fname->base_name instead of
inherit_from_dir in synthetic_smb_fname() to get an struct smb_filename of the
parent directory.

Nobody complained so far, fix it silently.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
source3/smbd/posix_acls.c
source3/smbd/proto.h
source3/smbd/trans2.c