lib:cmdline: Also set logfilebase for -l|--log-basename
authorAndreas Schneider <asn@samba.org>
Fri, 30 Apr 2021 14:12:29 +0000 (16:12 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 6 May 2021 12:40:28 +0000 (12:40 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/cmdline/cmdline.c

index 592db97cabb4b76f21e3cf0936d5da3eb841c463..2df4d4385310686e8d454685faf708acb4018371 100644 (file)
@@ -396,6 +396,8 @@ static void popt_samba_callback(poptContext popt_ctx,
                        }
                        log_to_file = true;
 
+                       set_dyn_LOGFILEBASE(arg);
+
                        TALLOC_FREE(new_logfile);
                }
                break;