diff options
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 2 |
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; |