diff options
author | Jeremy Allison <jra@samba.org> | 2003-11-19 00:18:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-11-19 00:18:45 +0000 |
commit | 5139e4a1a929e1491702de3f1953a835024f6fe3 (patch) | |
tree | 69052747b36b166a2d5a09a80da695502ffff082 /source3/rpc_server | |
parent | 8e76781ff2588c7fb6efd8c0a8d944d81eb131e6 (diff) | |
download | samba-5139e4a1a929e1491702de3f1953a835024f6fe3.tar.gz samba-5139e4a1a929e1491702de3f1953a835024f6fe3.tar.bz2 samba-5139e4a1a929e1491702de3f1953a835024f6fe3.zip |
Correct fix for checking of '$' name termination.
Jeremy.
(This used to be commit ec2339645283c9e489659a8892c317bb9f7610f0)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } /******************************************************************* |