summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-05-29 07:54:01 +0000
committerAndrew Tridgell <tridge@samba.org>1996-05-29 07:54:01 +0000
commitec520018094a441017a539136e8f561900dd1318 (patch)
treee531dd1daa64610ca6089060e89227dec3551741 /source3/smbd
parentdebd5b6ae9e4b308398d1d0a305ed4357ff6e1a5 (diff)
downloadsamba-ec520018094a441017a539136e8f561900dd1318.tar.gz
samba-ec520018094a441017a539136e8f561900dd1318.tar.bz2
samba-ec520018094a441017a539136e8f561900dd1318.zip
handle errors from receive_smb better, and print error string
(This used to be commit 7814eca4b22f909e75c3321d9a157c2228198c5c)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 1d02477073..00f8c9e0fd 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -2394,7 +2394,8 @@ int make_connection(char *service,char *user,char *password, int pwlen, char *de
if (ChDir(pcon->connectpath) != 0)
{
- DEBUG(0,("Can't change directory to %s\n",pcon->connectpath));
+ DEBUG(0,("Can't change directory to %s (%s)\n",
+ pcon->connectpath,strerror(errno)));
pcon->open = False;
unbecome_user();
if (!IS_IPC(cnum)) {
@@ -3721,8 +3722,8 @@ void process(void )
extern int keepalive;
/* check for socket failure */
- if (errno == EBADF) {
- DEBUG(3,("%s Bad file descriptor - exiting\n",timestring()));
+ if (errno) {
+ DEBUG(3,("receive_smb error (%s) exiting\n",strerror(errno)));
return;
}