smbd: Remove sconn->using_smb2
[martins/samba-autobuild/.git] / source3 / smbd / filename.c
index 4370d7330483a3cc88fc1a7ea08be6bdff6cc979..7fafc1718c734f6cfaeaace9fd775e8d0ceccb05 100644 (file)
@@ -43,7 +43,7 @@ uint32_t ucf_flags_from_smb_request(struct smb_request *req)
        if (req->posix_pathnames) {
                ucf_flags |= UCF_POSIX_PATHNAMES;
 
-               if (!req->sconn->using_smb2) {
+               if (!conn_using_smb2(req->sconn)) {
                        ucf_flags |= UCF_LCOMP_LNK_OK;
                }
        }