summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2003-11-18 20:06:10 +0000
committerRafal Szczesniak <mimir@samba.org>2003-11-18 20:06:10 +0000
commit66603d58e0328933ffb77ba160600b5af353cbd8 (patch)
tree7e1bb633983c570cda534e9edd2134a248289d45 /source3
parent8f78f1bed2d0a0fb007492d48ea84b18c31ca388 (diff)
downloadsamba-66603d58e0328933ffb77ba160600b5af353cbd8.tar.gz
samba-66603d58e0328933ffb77ba160600b5af353cbd8.tar.bz2
samba-66603d58e0328933ffb77ba160600b5af353cbd8.zip
Fix to correct checking of '$' name termination.
Patch by metze. rafal (This used to be commit 7191186fc64eb0b8092a2f6f1e89b6b6a6df7627)
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 4d1cf9bddc..1c57af0acf 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -490,7 +490,7 @@ static BOOL is_hidden_share(int snum)
pstring net_name;
pstrcpy(net_name, lp_servicename(snum));
- return (net_name[strlen(net_name)] == '$') ? True : False;
+ return (net_name[strlen(net_name) - 1] == '$') ? True : False;
}
/*******************************************************************