lib:util: Fix smbclient -l basename dir
authorAmit Kumar <amitkuma@redhat.com>
Wed, 22 Apr 2020 11:53:42 +0000 (06:53 -0500)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 7 May 2020 10:38:29 +0000 (10:38 +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>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu May  7 10:38:29 UTC 2020 on sn-devel-184

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

index 0b203cd45a3c28cf25c8142b7d7bdc4df86dae5a..4b9a79e0b6ff772324493a038772c513037a6313 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