summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-03-07 12:31:42 +0100
committerAndrew Bartlett <abartlet@samba.org>2019-03-08 01:41:27 +0000
commitc71334ec0c92e791022a9b7c900aa0dd649226c2 (patch)
tree3ac9741163e120f5f51389b78950efe24abb4d74 /lib
parent5bc215f70af6fbf97baac1cdac9201701d8edf70 (diff)
downloadsamba-c71334ec0c92e791022a9b7c900aa0dd649226c2.tar.gz
lib:util: Move debug message for mkdir failing to log level 1
If you connnect to a host with smbclient this gets always printed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13823 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 8 01:41:27 UTC 2019 on sn-devel-144
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index 19824b550c0..b8eed3ca28c 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -294,9 +294,9 @@ _PUBLIC_ bool directory_create_or_exist(const char *dname,
old_umask = umask(0);
ret = mkdir(dname, dir_perms);
if (ret == -1 && errno != EEXIST) {
- DEBUG(0, ("mkdir failed on directory "
- "%s: %s\n", dname,
- strerror(errno)));
+ DBG_WARNING("mkdir failed on directory %s: %s\n",
+ dname,
+ strerror(errno));
umask(old_umask);
return false;
}