From: Andreas Schneider Date: Thu, 7 Mar 2019 11:31:42 +0000 (+0100) Subject: lib:util: Move debug message for mkdir failing to log level 1 X-Git-Tag: samba-4.8.10~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3e306433f7be4f0d190884ba078cd39d02ab318;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett (cherry picked from commit c71334ec0c92e791022a9b7c900aa0dd649226c2) Autobuild-User(v4-8-test): Karolin Seeger Autobuild-Date(v4-8-test): Tue Mar 12 17:01:14 UTC 2019 on sn-devel-144 --- 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; }