summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-19 00:22:47 +0000
committerJeremy Allison <jra@samba.org>2003-11-19 00:22:47 +0000
commit3848849b021bc39c31144a61b8aa210e00b39a13 (patch)
treed4ad2b8a60c43019f224525edec9f6359e6d9c01 /source3
parent66603d58e0328933ffb77ba160600b5af353cbd8 (diff)
downloadsamba-3848849b021bc39c31144a61b8aa210e00b39a13.tar.gz
samba-3848849b021bc39c31144a61b8aa210e00b39a13.tar.bz2
samba-3848849b021bc39c31144a61b8aa210e00b39a13.zip
Correct fix for '$' termination test.
Jeremy. (This used to be commit b93e44e01edb432e11b9ad6aeb4d4eea0f7fa433)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c3
1 files changed, 1 insertions, 2 deletions
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;
}