summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_srvsvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-08 00:42:40 +0100
committerGünther Deschner <gd@samba.org>2008-03-08 23:07:00 +0100
commit3102609c4bf18c547ad2171b313e620647a718bf (patch)
tree3f00e0f7ee87b0c342107477a298a302d69c146c /source3/rpc_server/srv_srvsvc.c
parent62ca78bd27a015681ee22676c88d0fad4d1d7ced (diff)
downloadsamba-3102609c4bf18c547ad2171b313e620647a718bf.tar.gz
samba-3102609c4bf18c547ad2171b313e620647a718bf.tar.bz2
samba-3102609c4bf18c547ad2171b313e620647a718bf.zip
Use pidl for _srvsvc_NetSetFileSecurity.
Guenther (This used to be commit 64a121c147c825259a06a8cd8de85ec31dd5b4a4)
Diffstat (limited to 'source3/rpc_server/srv_srvsvc.c')
-rw-r--r--source3/rpc_server/srv_srvsvc.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c
index 1873bcb578..a53803c986 100644
--- a/source3/rpc_server/srv_srvsvc.c
+++ b/source3/rpc_server/srv_srvsvc.c
@@ -321,28 +321,7 @@ static bool api_srv_net_file_query_secdesc(pipes_struct *p)
static bool api_srv_net_file_set_secdesc(pipes_struct *p)
{
- SRV_Q_NET_FILE_SET_SECDESC q_u;
- SRV_R_NET_FILE_SET_SECDESC r_u;
- prs_struct *data = &p->in_data.data;
- prs_struct *rdata = &p->out_data.rdata;
-
- ZERO_STRUCT(q_u);
- ZERO_STRUCT(r_u);
-
- /* Unmarshall the net file set info from Win9x */
- if(!srv_io_q_net_file_set_secdesc("", &q_u, data, 0)) {
- DEBUG(0,("api_srv_net_file_set_secdesc: Failed to unmarshall SRV_Q_NET_FILE_SET_SECDESC.\n"));
- return False;
- }
-
- r_u.status = _srv_net_file_set_secdesc(p, &q_u, &r_u);
-
- if(!srv_io_r_net_file_set_secdesc("", &r_u, rdata, 0)) {
- DEBUG(0,("api_srv_net_file_set_secdesc: Failed to marshall SRV_R_NET_FILE_SET_SECDESC.\n"));
- return False;
- }
-
- return True;
+ return proxy_srvsvc_call(p, NDR_SRVSVC_NETSETFILESECURITY);
}
/*******************************************************************