NetBSD Problem Report #25046

Received: (qmail 21666 invoked by uid 605); 4 Apr 2004 05:46:28 -0000
Message-Id: <20040404054626.B8A1611159@narn.netbsd.org>
Date: Sun,  4 Apr 2004 05:46:26 +0000 (UTC)
From: ajsbsd@yahoo.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: ajsbsd@yahoo.com
To: gnats-bugs@gnats.NetBSD.org
Subject: ports/net/sharity-light i386 cannot copy binary data, receive protocol error
X-Send-Pr-Version: www-1.0

>Number:         25046
>Category:       port-i386
>Synopsis:       ports/net/sharity-light i386 cannot copy binary data, receive protocol error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 04 05:47:00 +0000 2004
>Closed-Date:    
>Last-Modified:  Sun Apr 04 07:03:00 +0000 2004
>Originator:     Aaron Summers
>Release:        NetBSD-1.6.2
>Organization:
Aaron Summers
>Environment:
NetBSD env 1.6.2 NetBSD 1.6.2 (GENERIC) #0: Tue Feb 10 21:53:10 UTC 2004     autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC i386

>Description:
cannot read any binary data from CIFS server.  Can authenticate, mount, ls, and read txt documents.  however when attempting to read any binary data I receive "Protocol Not Supported".  It appears this issue was never reported to netbsd-bugs, but was sent to netbsd-users


Similar problem was reported to netbsd-users: in 2003

From: Schamil Wackenhut <sw@wacke.org>
List: netbsd-users
Date: 07/06/2003 15:40:32 <snip>
I can mount and show (ls -l) smb locations without any problems, but
when i try to read them (copy for example) then i get a message:
cp: test.mp3: Protocol not supported
<snip>
>How-To-Repeat:
# shlight //server/share /mnt -U username 
# cp /mnt/binary_file /tmp

>Fix:
sharity-light works on the same machine with OpenBSD 3.4/3.5 , I checked their patches from ports but did not see anything meaningful.
>Release-Note:
>Audit-Trail:

From: aaron <aaron@insight.ath.cx>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: port-i386/25046
Date: Sun, 4 Apr 2004 01:54:50 -0500 (EST)

 Here are the last few lines of code before the error from cp.c

 cp.c
 139  if (fs->st_size > 0) {
 147  if (fs->st_size <= 8 * 1048576) {
 148    p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
 150    if (p == MAP_FAILED) {
 153      (void) madvise(p, (size_t)fs->st_size,
 155        if (write(to_fd, p, fs->st_size) !=
 157          warn("%s", to.p_path);

 thanks

 --

 Aaron Summers 			<aaron@insight.ath.cx>

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.