mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3:libsmb: SMBC_getatr try pathinfo2 only once
Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
30ba2c0580
commit
cfedd4fe69
@ -558,6 +558,8 @@ SMBC_getatr(SMBCCTX * context,
|
||||
return True;
|
||||
}
|
||||
|
||||
srv->no_pathinfo2 = True;
|
||||
|
||||
/* if this is NT then don't bother with the getatr */
|
||||
if (smb1cli_conn_capabilities(targetcli->conn) & CAP_NT_SMBS) {
|
||||
errno = EPERM;
|
||||
@ -581,7 +583,6 @@ SMBC_getatr(SMBCCTX * context,
|
||||
if (change_time_ts != NULL) {
|
||||
*change_time_ts = w_time_ts;
|
||||
}
|
||||
srv->no_pathinfo2 = True;
|
||||
TALLOC_FREE(frame);
|
||||
return True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user