s3/libsmb: Use smbXcli_conn_nt_smbs_supported instead of SMB1 specific test
[obnox/samba/samba-obnox.git] / source3 / libsmb / libsmb_file.c
index 9521542cb274a3c84fd4ff7d7b75dd450218f37a..14080fe1c79a2c06d1d331378066511701adec5e 100644 (file)
@@ -551,7 +551,7 @@ SMBC_getatr(SMBCCTX * context,
         }
 
        /* if this is NT then don't bother with the getatr */
-       if (smb1cli_conn_capabilities(targetcli->conn) & CAP_NT_SMBS) {
+       if (smbXcli_conn_nt_smbs_supported(targetcli->conn)) {
                 errno = EPERM;
                TALLOC_FREE(frame);
                 return False;