Fix botch in last patch which meant that we were ignoring almost all

errors in response to SMB echo packets.

The new fix doesn't look particular nice but should at least do
The Right Thing(TM).
This commit is contained in:
tron 2012-01-30 15:48:11 +00:00
parent 908184df9b
commit cd0e8028e5
3 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.211 2012/01/30 15:44:02 adam Exp $
# $NetBSD: Makefile,v 1.212 2012/01/30 15:48:11 tron Exp $
.include "../../net/samba/Makefile.mirrors"
DISTNAME= samba-${VERSION}
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${SAMBA_MIRRORS:=stable/}

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.81 2012/01/30 13:44:06 tron Exp $
$NetBSD: distinfo,v 1.82 2012/01/30 15:48:11 tron Exp $
SHA1 (samba-3.6.3.tar.gz) = 430a1e13fe20c17e2808035c863eb5e77685c89b
RMD160 (samba-3.6.3.tar.gz) = fd04fd5897f0f34f257c504de911e1ab34ff3e25
@ -30,4 +30,4 @@ SHA1 (patch-bc) = 857e2400c8852f3c878f8d82857e80f214be2aea
SHA1 (patch-bd) = b78324305bbf67fa4a7dd627e0af1618d2bf7b47
SHA1 (patch-be) = 2b298e596f2f57a595b83619ba68f6ad95febaaa
SHA1 (patch-bf) = 9511567bfe9b579ae0a1c85483e7fe3ad4866973
SHA1 (patch-client_client.c) = e65d4c17d77f61aa1f3f30b19d500756f6287fd8
SHA1 (patch-client_client.c) = c25841ce89721c0d47e2e4f880949b8a158030c6

View file

@ -1,4 +1,4 @@
$NetBSD: patch-client_client.c,v 1.1 2012/01/30 13:44:06 tron Exp $
$NetBSD: patch-client_client.c,v 1.2 2012/01/30 15:48:11 tron Exp $
Restore compatibility with CIFS server on Apple Time Capsule:
@ -12,7 +12,7 @@ https://bugzilla.samba.org/show_bug.cgi?id=8139
- if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status)
+ && NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
+ && NT_STATUS_V(status) != 0xffff0002) {
DEBUG(0, ("SMBecho failed. Maybe server has closed "
"the connection\n"));
finished = true;