summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-16 13:24:36 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-16 13:24:36 +0000
commit7b18c5d1647b44f46cf973701b3bcc9aefb37e7d (patch)
tree827e69f838133525cbcb1bb7d264946846e1a4c6 /source3/rpc_server
parentc6cf08774114a906645a405dea8a7546d614de35 (diff)
downloadsamba-7b18c5d1647b44f46cf973701b3bcc9aefb37e7d.tar.gz
samba-7b18c5d1647b44f46cf973701b3bcc9aefb37e7d.tar.bz2
samba-7b18c5d1647b44f46cf973701b3bcc9aefb37e7d.zip
Make sure we mark the assumption of a fstring parameter for 'devicetype'
in the function prototype, and change callers to respect this. Andrew Bartlett (This used to be commit 9f3d3c380120f16d76d68f346799282d61eec892)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 6d2320d67d..815dd75d22 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1840,6 +1840,8 @@ WERROR _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC
struct current_user user;
connection_struct *conn = NULL;
BOOL became_user = False;
+ fstring dev;
+ fstrcpy(dev, "A:");
ZERO_STRUCT(st);
@@ -1853,7 +1855,7 @@ WERROR _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC
get_current_user(&user, p);
become_root();
- conn = make_connection(qualname, null_pw, "A:", user.vuid, &nt_status);
+ conn = make_connection(qualname, null_pw, dev, user.vuid, &nt_status);
unbecome_root();
if (conn == NULL) {
@@ -1943,9 +1945,12 @@ WERROR _srv_net_file_set_secdesc(pipes_struct *p, SRV_Q_NET_FILE_SET_SECDESC *q_
struct current_user user;
connection_struct *conn = NULL;
BOOL became_user = False;
+ fstring dev;
+ fstrcpy(dev, "A:");
ZERO_STRUCT(st);
+
r_u->status = WERR_OK;
unistr2_to_ascii(qualname, &q_u->uni_qual_name, sizeof(qualname));
@@ -1956,7 +1961,7 @@ WERROR _srv_net_file_set_secdesc(pipes_struct *p, SRV_Q_NET_FILE_SET_SECDESC *q_
get_current_user(&user, p);
become_root();
- conn = make_connection(qualname, null_pw, "A:", user.vuid, &nt_status);
+ conn = make_connection(qualname, null_pw, dev, user.vuid, &nt_status);
unbecome_root();
if (conn == NULL) {