summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-17 14:07:10 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-17 14:07:10 +0000
commitabb183317342fbfdc75a6858d427e550f8f7123d (patch)
treed689aaa7022d88e5229093486ec2fbdd5d40c2f5 /source3/rpc_server
parent1656c5d258939397e0131349d2539212a25b5a18 (diff)
downloadsamba-abb183317342fbfdc75a6858d427e550f8f7123d.tar.gz
samba-abb183317342fbfdc75a6858d427e550f8f7123d.tar.bz2
samba-abb183317342fbfdc75a6858d427e550f8f7123d.zip
fix this in rpc calls as well
- ADMIN$ is an IPC share, not a disk share (This used to be commit d039d84164fa15ba242b03fdadfab2e259ca6b65)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 6e0043b0bb..061c70454f 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -50,7 +50,7 @@ static void init_srv_share_info_1(SRV_SHARE_INFO_1 *sh1, int snum)
if (lp_print_ok(snum))
type = STYPE_PRINTQ;
- if (strequal("IPC$", net_name))
+ if (strequal("IPC", lp_fstype(snum)))
type = STYPE_IPC;
if (net_name[len_net_name] == '$')
type |= STYPE_HIDDEN;
@@ -84,7 +84,7 @@ static void init_srv_share_info_2(SRV_SHARE_INFO_2 *sh2, int snum)
if (lp_print_ok(snum))
type = STYPE_PRINTQ;
- if (strequal("IPC$", net_name))
+ if (strequal("IPC", lp_fstype(snum)))
type = STYPE_IPC;
if (net_name[len_net_name] == '$')
type |= STYPE_HIDDEN;