summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-03-07 12:31:42 +0100
committerKarolin Seeger <kseeger@samba.org>2019-03-12 17:01:14 +0000
commitd3e306433f7be4f0d190884ba078cd39d02ab318 (patch)
tree9fb8ae767c68e41f54cb74bf3e3174a33452beb0
parente655fa0a437faa7b9335a6f09b571d734df4b810 (diff)
downloadsamba-d3e306433f7be4f0d190884ba078cd39d02ab318.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> (cherry picked from commit c71334ec0c92e791022a9b7c900aa0dd649226c2) Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-8-test): Tue Mar 12 17:01:14 UTC 2019 on sn-devel-144
-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 4291bfa5d57..5839ef83f60 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -212,9 +212,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;
}