1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

lib: Simplify ad_get_internal()

We have metadata_fsp() for this

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
Volker Lendecke 2024-12-04 19:37:20 +01:00
parent e1767db3db
commit e166299b18

View File

@ -2584,11 +2584,8 @@ static struct adouble *ad_get_internal(TALLOC_CTX *ctx,
int mode;
if (fsp != NULL) {
if (fsp_is_alternate_stream(fsp)) {
smb_fname = fsp->base_fsp->fsp_name;
} else {
smb_fname = fsp->fsp_name;
}
struct files_struct *meta_fsp = metadata_fsp(fsp);
smb_fname = meta_fsp->fsp_name;
}
DEBUG(10, ("ad_get(%s) called for %s\n",