From 3848849b021bc39c31144a61b8aa210e00b39a13 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 Nov 2003 00:22:47 +0000 Subject: Correct fix for '$' termination test. Jeremy. (This used to be commit b93e44e01edb432e11b9ad6aeb4d4eea0f7fa433) --- source3/rpc_server/srv_srvsvc_nt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 1c57af0acf..40d3a43bef 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -487,9 +487,8 @@ 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) - 1] == '$') ? True : False; } -- cgit