From 5139e4a1a929e1491702de3f1953a835024f6fe3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 Nov 2003 00:18:45 +0000 Subject: Correct fix for checking of '$' name termination. Jeremy. (This used to be commit ec2339645283c9e489659a8892c317bb9f7610f0) --- source3/rpc_server/srv_srvsvc_nt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 4d1cf9bddc..40d3a43bef 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -487,10 +487,9 @@ static void init_srv_share_info_1501(pipes_struct *p, SRV_SHARE_INFO_1501 *sh150 static BOOL is_hidden_share(int snum) { - pstring net_name; + const char *net_name = lp_servicename(snum); - pstrcpy(net_name, lp_servicename(snum)); - return (net_name[strlen(net_name)] == '$') ? True : False; + return (net_name[strlen(net_name) - 1] == '$') ? True : False; } /******************************************************************* -- cgit