From cfedd4fe6951493368dd758d16fcd650845ac4b9 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Fri, 11 Oct 2013 10:59:59 +0200 Subject: s3:libsmb: SMBC_getatr try pathinfo2 only once Signed-off-by: Gregor Beck Reviewed-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/libsmb/libsmb_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index 32210b6c1a..b4d9f8e68e 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -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; } -- cgit