Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 20:39:12 +0100 (CET)
From:      Ulrich Kiermayr <uk@univie.ac.at>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/46902: Error with mount_smbfs and 15 Char Netbios Names
Message-ID:  <200301091939.h09JdC3a078185@tuvok.cc.univie.ac.at>

next in thread | raw e-mail | index | archive | help


>Number:         46902
>Category:       misc
>Synopsis:       Error with mount_smbfs and 15 Char Netbios Names
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 09 11:40:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Kiermayr
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Vienna University Computer Center
>Environment:
System: FreeBSD tuvok.cc.univie.ac.at 4.7-STABLE FreeBSD 4.7-STABLE #2: Thu Jan 9 15:17:52 CET 2003 root@tuvok.cc.univie.ac.at:/usr/obj/usr/src/sys/TUVOK i386
>Description:
	trying to mount a smb/cifs share that contains a server-name with
	valid and working 15 Char netbios Names fails with 'server name too
	long'.
>How-To-Repeat:
	just try to mount from a 15Char netbios name Server.
>Fix:
	in /usr/src/contrib/smbfs/lib/smb

--- ctx.c       Sun Aug 18 15:41:01 2002
+++ ctx.c.new   Thu Jan  9 20:26:04 2003
@@ -274,7 +274,7 @@
 int
 smb_ctx_setserver(struct smb_ctx *ctx, const char *name)
 {
-       if (strlen(name) >= SMB_MAXSRVNAMELEN) {
+       if (strlen(name) > SMB_MAXSRVNAMELEN) {
                smb_error("server name '%s' too long", 0, name);
                return ENAMETOOLONG;
        }

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301091939.h09JdC3a078185>