summaryrefslogtreecommitdiff
path: root/source3/msdfs
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-10-28 18:32:03 +0000
committerJeremy Allison <jra@samba.org>2003-10-28 18:32:03 +0000
commit2e46c7648b7297345e1f8871a0acca75a21bbbc3 (patch)
treed73defed90b0372c76a5804b494efbc97da778e1 /source3/msdfs
parent80ebb3782a01332b9b9b14f5b9d60b52a418f328 (diff)
downloadsamba-2e46c7648b7297345e1f8871a0acca75a21bbbc3.tar.gz
samba-2e46c7648b7297345e1f8871a0acca75a21bbbc3.tar.bz2
samba-2e46c7648b7297345e1f8871a0acca75a21bbbc3.zip
Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy. (This used to be commit 26bfe37a10f7337acb8c5ac0e04fac7a8dddc769)
Diffstat (limited to 'source3/msdfs')
-rw-r--r--source3/msdfs/msdfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index 20814c2ceb..ce29c506bb 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -101,7 +101,8 @@ static BOOL create_conn_struct( connection_struct *conn, int snum, char *path)
return False;
}
if (vfs_ChDir(conn,conn->connectpath) != 0) {
- DEBUG(0,("create_conn_struct: Can't ChDir to new conn path %s\n", conn->connectpath));
+ DEBUG(3,("create_conn_struct: Can't ChDir to new conn path %s. Error was %s\n",
+ conn->connectpath, strerror(errno) ));
talloc_destroy( conn->mem_ctx );
return False;
}