lib:util: Don't print lstat warning on ERROR debug level
authorAndreas Schneider <asn@samba.org>
Mon, 14 Nov 2016 10:31:20 +0000 (11:31 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 15 Nov 2016 23:20:06 +0000 (00:20 +0100)
If we are a client and can't access the lock directory don't confuse a
user.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util.c

index a8bbc158f60dd9c80a3fc5fbe34c26120691efa9..56056a3403ce7c442833748a0de2e3769ad9e0bf 100644 (file)
@@ -202,8 +202,8 @@ _PUBLIC_ bool directory_create_or_exist(const char *dname,
        }
 
        if (errno != ENOENT) {
-               DEBUG(0, ("lstat failed on directory %s: %s\n",
-                         dname, strerror(errno)));
+               DBG_WARNING("lstat failed on directory %s: %s\n",
+                           dname, strerror(errno));
                return false;
        }