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:
parent
e1767db3db
commit
e166299b18
@ -2584,11 +2584,8 @@ static struct adouble *ad_get_internal(TALLOC_CTX *ctx,
|
|||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
if (fsp != NULL) {
|
if (fsp != NULL) {
|
||||||
if (fsp_is_alternate_stream(fsp)) {
|
struct files_struct *meta_fsp = metadata_fsp(fsp);
|
||||||
smb_fname = fsp->base_fsp->fsp_name;
|
smb_fname = meta_fsp->fsp_name;
|
||||||
} else {
|
|
||||||
smb_fname = fsp->fsp_name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(10, ("ad_get(%s) called for %s\n",
|
DEBUG(10, ("ad_get(%s) called for %s\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user