summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-18 11:31:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:17 -0500
commit71730ae5eb658c8c674273d9162e1c989e3bccda (patch)
tree66e0c914c7edf0449f7568a4c8f4d9db4917d34d /source3
parentd6b3fce078869de35334c0805ff141dc8bcf5f65 (diff)
downloadsamba-71730ae5eb658c8c674273d9162e1c989e3bccda.tar.gz
samba-71730ae5eb658c8c674273d9162e1c989e3bccda.tar.bz2
samba-71730ae5eb658c8c674273d9162e1c989e3bccda.zip
r20876: Fix bug 4346 -- Thanks to YAMASAKI Hiroyuki
(This used to be commit a7a66eb4eb2e518007b791457694c39dfff90705)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 06c84b60e9..3dea0a8493 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -215,7 +215,7 @@ static uint32 get_share_type(const struct share_params *params)
type = STYPE_PRINTQ;
if (strequal(lp_fstype(params->service), "IPC"))
type = STYPE_IPC;
- if (net_name[len_net_name] == '$')
+ if (net_name[len_net_name-1] == '$')
type |= STYPE_HIDDEN;
return type;