mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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
This commit is contained in:
parent
5bc215f70a
commit
c71334ec0c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user