Subject: pkg/28681: Suspending samba's smbclient kills my shell
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rquinn@sec.sprint.net>
List: pkgsrc-bugs
Date: 12/16/2004 16:03:00
>Number:         28681
>Category:       pkg
>Synopsis:       Suspending samba's smbclient kills my shell
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 16 16:03:00 +0000 2004
>Originator:     Rob Quinn
>Release:        pkgsrc-current, Solaris2.8
>Organization:
>Environment:
SunOS crn-sen 5.8 Generic_108528-19 sun4u sparc SUNW,Netra-T4

>Description:
Sometimes, but not always, if I control-Z to suspend smbclient, I never get my shell prompt back.  After about a minute my login shell exits.  Sometimes it works fine as expected.  This started within about the past month.  
>How-To-Repeat:
smb: \winnt\> cd system32
cd system32
smb: \winnt\system32\> 
Suspended
logout
smb: \winnt\system32\> Connection to crn-sen closed.


crn-sen:~ %smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
Domain=[AD] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
crn-sen:~ %fg
smbclient //HOSTNAME/c$ -I 10.72.153.34 -A ~/.smbauthfile
smb: \> 
Suspended
logout
smb: \> Connection to crn-sen closed.

>Fix:
I haven't seen this problem with samba on NetBSD, but I rarely use it there.