Pass the current debuglevel down to the forked smbd
authorVolker Lendecke <vl@samba.org>
Thu, 12 Feb 2009 19:41:49 +0000 (20:41 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 5 Apr 2009 11:53:34 +0000 (13:53 +0200)
source3/rpc_client/rpc_transport_smbd.c

index bf4aa65daec57ed4dc23c1b1056f36b0cac5c24b..0a3787a776da5ca1f16bd2f00802a107c20bfef5 100644 (file)
@@ -309,7 +309,8 @@ struct async_req *rpc_cli_smbd_conn_init_send(TALLOC_CTX *mem_ctx,
                        printf("no memory");
                        exit(1);
                }
-               if (asprintf(&smbd_cmd, "%s -F -S", smbd_cmd) == -1) {
+               if (asprintf(&smbd_cmd, "%s -F -S -d %d", smbd_cmd,
+                            DEBUGLEVEL) == -1) {
                        printf("no memory");
                        exit(1);
                }