summaryrefslogtreecommitdiff
path: root/net/samba/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2012-01-30 15:48:11 +0000
committertron <tron@pkgsrc.org>2012-01-30 15:48:11 +0000
commitcd0e8028e5db139dc3a9791f33f97bc8071ae8dd (patch)
tree277ecfc40dd0537ef1eee9279bd3985e9ffb7a24 /net/samba/patches
parent908184df9b51b215cc961efada834e4876b111dd (diff)
downloadpkgsrc-cd0e8028e5db139dc3a9791f33f97bc8071ae8dd.tar.gz
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).
Diffstat (limited to 'net/samba/patches')
-rw-r--r--net/samba/patches/patch-client_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/samba/patches/patch-client_client.c b/net/samba/patches/patch-client_client.c
index d86dd932a19..2192b392ad2 100644
--- a/net/samba/patches/patch-client_client.c
+++ b/net/samba/patches/patch-client_client.c
@@ -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;