diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-06 02:12:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-06 02:12:07 +0000 |
commit | 68c8638b36b5326a33f0c7ce09cdb8d400495de3 (patch) | |
tree | 6536bb53c8b1dfc2ef7e7a3d789d2d82eefb1afd /source3/rpc_server | |
parent | 529f7c07f507f186c599826d0b10d10c131ff902 (diff) | |
download | samba-68c8638b36b5326a33f0c7ce09cdb8d400495de3.tar.gz samba-68c8638b36b5326a33f0c7ce09cdb8d400495de3.tar.bz2 samba-68c8638b36b5326a33f0c7ce09cdb8d400495de3.zip |
NT sucks ! :-). We have to prefix the UNIX path with a C: in order to pass the
server manager tests :-). Ensure we don't set a return level on set as
server manager barfs....
Jeremy.
(This used to be commit cb66e78c181878809e367f4f03f3b4c31cb4b8e1)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 5c0bdf57cb..82a299d18e 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -75,7 +75,8 @@ static void init_srv_share_info_2(SRV_SHARE_INFO_2 *sh2, int snum) pstrcpy(net_name, lp_servicename(snum)); pstrcpy(remark, lp_comment(snum)); pstring_sub(remark,"%S",lp_servicename(snum)); - pstrcpy(path, lp_pathname(snum)); + pstrcpy(path, "C:"); + pstrcat(path, lp_pathname(snum)); pstrcpy(passwd, ""); len_net_name = strlen(net_name); @@ -140,7 +141,8 @@ static void init_srv_share_info_502(TALLOC_CTX *ctx, SRV_SHARE_INFO_502 *sh502, pstrcpy(net_name, lp_servicename(snum)); pstrcpy(remark, lp_comment(snum)); pstring_sub(remark,"%S",lp_servicename(snum)); - pstrcpy(path, lp_pathname(snum)); + pstrcpy(path, "C:"); + pstrcat(path, lp_pathname(snum)); pstrcpy(passwd, ""); len_net_name = strlen(net_name); @@ -962,17 +964,17 @@ uint32 _srv_net_share_set_info(pipes_struct *p, SRV_Q_NET_SHARE_SET_INFO *q_u, S if (snum >= 0) { switch (q_u->info_level) { case 1: - status = NT_STATUS_ACCESS_DENIED; + status = ERROR_ACCESS_DENIED; break; case 2: - status = NT_STATUS_ACCESS_DENIED; + status = ERROR_ACCESS_DENIED; break; case 502: /* we set sd's here. FIXME. JRA */ - status = NT_STATUS_ACCESS_DENIED; + status = ERROR_ACCESS_DENIED; break; case 1005: - status = NT_STATUS_ACCESS_DENIED; + status = ERROR_ACCESS_DENIED; break; default: DEBUG(5,("_srv_net_share_set_info: unsupported switch value %d\n", q_u->info_level)); @@ -983,6 +985,7 @@ uint32 _srv_net_share_set_info(pipes_struct *p, SRV_Q_NET_SHARE_SET_INFO *q_u, S status = NT_STATUS_BAD_NETWORK_NAME; } + r_u->switch_value = 0; r_u->status = status; DEBUG(5,("_srv_net_share_set_info: %d\n", __LINE__)); |