lib:util: Fix smbclient -l basename dir
authorAmit Kumar <amitkuma@redhat.com>
Wed, 22 Apr 2020 11:53:42 +0000 (06:53 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 9 Jul 2020 09:56:19 +0000 (09:56 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14345

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit c83ce5f4f99aef94530411ec82cc03e9935b352d)

lib/util/debug.c
selftest/knownfail.d/smbclog [deleted file]

index c42022ec9bbae4440b4bd84a9288e85969075054..6b5d5f9bd0cac2416d914a1032d9e8744e699b43 100644 (file)
@@ -1140,9 +1140,15 @@ bool reopen_logs_internal(void)
                dbgc_config[DBGC_ALL].fd = 2;
                return true;
 
-       case DEBUG_FILE:
+       case DEBUG_FILE: {
+               struct debug_backend *b = debug_find_backend("file");
+
+               if (b != NULL) {
+                       b->log_level = dbgc_config[DBGC_ALL].loglevel;
+               }
                break;
        }
+       }
 
        oldumask = umask( 022 );
 
diff --git a/selftest/knownfail.d/smbclog b/selftest/knownfail.d/smbclog
deleted file mode 100644 (file)
index bfe1bfe..0000000
+++ /dev/null
@@ -1 +0,0 @@
- ^samba3.blackbox.smbclient_log_basename