s3:libsmb: SMBC_getatr try pathinfo2 only once
authorGregor Beck <gbeck@sernet.de>
Fri, 11 Oct 2013 08:59:59 +0000 (10:59 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 30 Oct 2013 22:23:51 +0000 (15:23 -0700)
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/libsmb_file.c

index 32210b6c1abcbba6e3c2cfcbda2f5351fa5b6db4..b4d9f8e68ec8eef2a11f5f81bb7de2c6e646cf6c 100644 (file)
@@ -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;
        }