Fix the build (by calling NDR_SRVSVC_NETFILEENUM).
authorGünther Deschner <gd@samba.org>
Wed, 19 Mar 2008 01:47:22 +0000 (02:47 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 19 Mar 2008 01:47:22 +0000 (02:47 +0100)
Guenther

source/rpc_server/srv_srvsvc.c

index 96bc3735b43e834771feff53e646b942e783bab6..e33ccce2d3d77845382b53913e4488381228af94 100644 (file)
@@ -70,25 +70,7 @@ static bool api_srv_net_srv_set_info(pipes_struct *p)
 
 static bool api_srv_net_file_enum(pipes_struct *p)
 {
-       SRV_Q_NET_FILE_ENUM q_u;
-       SRV_R_NET_FILE_ENUM r_u;
-       prs_struct *data = &p->in_data.data;
-       prs_struct *rdata = &p->out_data.rdata;
-
-       ZERO_STRUCT(q_u);
-       ZERO_STRUCT(r_u);
-
-       /* grab the net file enum */
-       if (!srv_io_q_net_file_enum("", &q_u, data, 0))
-               return False;
-
-       r_u.status = _srv_net_file_enum(p, &q_u, &r_u);
-
-       /* store the response in the SMB stream */
-       if(!srv_io_r_net_file_enum("", &r_u, rdata, 0))
-               return False;
-
-       return True;
+       return proxy_srvsvc_call(p, NDR_SRVSVC_NETFILEENUM);
 }
 
 /*******************************************************************