winbindd: winbindd_priv_pipe_dir() -> bool_dispatch_table
authorVolker Lendecke <vl@samba.org>
Wed, 2 May 2018 18:27:43 +0000 (20:27 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 17 May 2018 06:44:19 +0000 (08:44 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd.c
source3/winbindd/winbindd_misc.c
source3/winbindd/winbindd_proto.h

index 03b44bc9a51ab0d37acca0ea17292762399e21d8..8e4071ac3f975949f1c9099e65a14b72a6e571da 100644 (file)
@@ -535,9 +535,6 @@ static struct winbindd_dispatch_table {
        /* Miscellaneous */
 
        { WINBINDD_DOMAIN_INFO, winbindd_domain_info, "DOMAIN_INFO" },
-       { WINBINDD_PRIV_PIPE_DIR, winbindd_priv_pipe_dir,
-         "WINBINDD_PRIV_PIPE_DIR" },
-
        /* Credential cache access */
 
        /* End of list */
@@ -574,6 +571,9 @@ static struct winbindd_bool_dispatch_table {
        { WINBINDD_CCACHE_SAVE,
          winbindd_ccache_save,
          "CCACHE_SAVE" },
+       { WINBINDD_PRIV_PIPE_DIR,
+         winbindd_priv_pipe_dir,
+         "WINBINDD_PRIV_PIPE_DIR" },
 };
 
 struct winbindd_async_dispatch_table {
index e55fc4ef87442b2beda5957f0055404dc0f540d8..f919f1c9324d4e8f7b1d8373a78cb241b1fcfcfd 100644 (file)
@@ -551,7 +551,7 @@ bool winbindd_netbios_name(struct winbindd_cli_state *state)
 
 /* Where can I find the privileged pipe? */
 
-void winbindd_priv_pipe_dir(struct winbindd_cli_state *state)
+bool winbindd_priv_pipe_dir(struct winbindd_cli_state *state)
 {
        char *priv_dir;
        DEBUG(3, ("[%5lu]: request location of privileged pipe\n",
@@ -565,6 +565,6 @@ void winbindd_priv_pipe_dir(struct winbindd_cli_state *state)
        state->response->length +=
                strlen((char *)state->response->extra_data.data) + 1;
 
-       request_ok(state);
+       return true;
 }
 
index 2005730be334805d6660a8ed37d82bf998abd0db..6231997ae3284a82911df20743414f6eb98ef88b 100644 (file)
@@ -392,7 +392,7 @@ bool winbindd_info(struct winbindd_cli_state *state);
 bool winbindd_interface_version(struct winbindd_cli_state *state);
 bool winbindd_domain_name(struct winbindd_cli_state *state);
 bool winbindd_netbios_name(struct winbindd_cli_state *state);
-void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
+bool winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
 
 /* The following definitions come from winbindd/winbindd_ndr.c  */
 struct ndr_print;