summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2009-07-21 13:56:17 +0200
committerJeremy Allison <jra@samba.org>2009-07-21 10:05:21 -0700
commit8b6ec5b82cbc66cf8efd9d0713e36aac63c8c49e (patch)
tree4c9d98540b0ead0e13c135b9ecae3a7ee3432a51 /source3
parent319a97bce9f77161e62de9f86ddbec58629238cb (diff)
downloadsamba-8b6ec5b82cbc66cf8efd9d0713e36aac63c8c49e.tar.gz
samba-8b6ec5b82cbc66cf8efd9d0713e36aac63c8c49e.tar.bz2
samba-8b6ec5b82cbc66cf8efd9d0713e36aac63c8c49e.zip
do not log chdir with level 0 if reason is access denied
this changes the level of logs caused by users trying to access shares or subdirectories for which they do not have access to in the ACL this can fill up the samba log even with log level 0 and is more an expected kind of logs that IMHO should not be logged with such a high level. All other errors while chdir() will still be logged with level 0 Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 0124b2b047..a043288bc9 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -182,8 +182,8 @@ bool set_current_service(connection_struct *conn, uint16 flags, bool do_chdir)
if (do_chdir &&
vfs_ChDir(conn,conn->connectpath) != 0 &&
vfs_ChDir(conn,conn->origpath) != 0) {
- DEBUG(0,("chdir (%s) failed\n",
- conn->connectpath));
+ DEBUG(((errno!=EACCES)?0:3),("chdir (%s) failed, reason: %s\n",
+ conn->connectpath, strerror(errno)));
return(False);
}