From nobody Thu Nov 13 19:19:14 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1582626521; cv=none; d=zohomail.com; s=zohoarc; b=YPPkiRhJgl588C4BeCBI6LLeV/7sDA4/TDngj8w99X2lqMvsCYw5zHI7qp+QPseLOios6jUGsodO9NiOqHa0qyXRYjCh452tvRbGVJqym2+gQC+RWr0LfrogDqmuMI8+Vb0TTxmFc/N6mysL56M7V3soI1hsApDSuDLrf9znV6s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582626521; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=udQISSchNiI9GzQAyJo6vv1DlzxbDlWvKeDau3wlFVc=; b=Gz2B6ZpZVu38iMkIa6obFZWEVZweohNta02ojDY5yrsNfa14/7mxgw4ujJQGWYVljQtEsy3/aEGtzqed1tjfBmbzBTrXCaY1xhWsF01QPLAW8vVkKlGzNA4o27rG6iSs7shLpHvwOWj26GjNulRlg3lzylBBuzfKdZLUtQbB1Qk= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582626521338832.4034169993312; Tue, 25 Feb 2020 02:28:41 -0800 (PST) Received: from localhost ([::1]:52048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6XSC-0003pI-1J for importer@patchew.org; Tue, 25 Feb 2020 05:28:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34250) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6XRa-0003QG-7J for qemu-devel@nongnu.org; Tue, 25 Feb 2020 05:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6XRZ-0007PS-4N for qemu-devel@nongnu.org; Tue, 25 Feb 2020 05:28:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:58500) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6XRY-0007MX-V5 for qemu-devel@nongnu.org; Tue, 25 Feb 2020 05:28:01 -0500 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5B2B6AE0F; Tue, 25 Feb 2020 10:27:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Jiri Slaby To: Samuel Thibault Subject: [PATCH] slirp: samba, set 'server min protocol' to NT1 Date: Tue, 25 Feb 2020 11:27:58 +0100 Message-Id: <20200225102758.21074-1-jslaby@suse.cz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiri Slaby , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Samba changed the default of server min protocol from LANMAN1 (very old protocol) to SMB2_02 (only Vista and newer) in commit 840b8501b436 (docs-xml: change "server min protocol" to SMB2_02). WXP guests cannot use the samba shares since then as it uses a protocol newer than LANMAN1, but older than SMB2_02: NT1 protocol. So set 'server min protocol' in the samba config used in qemu to NT1. This restores support for WinNT and newer (WXP including). Signed-off-by: Jiri Slaby --- net/slirp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/slirp.c b/net/slirp.c index c4334ee876c7..b3bc4a2bded7 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -887,6 +887,7 @@ static int slirp_smb(SlirpState* s, const char *exporte= d_dir, "printing =3D bsd\n" "disable spoolss =3D yes\n" "usershare max shares =3D 0\n" + "server min protocol =3D NT1\n" "[qemu]\n" "path=3D%s\n" "read only=3Dno\n" --=20 2.25.1