mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Correct fix for checking of '$' name termination.
Jeremy.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
Reference in New Issue
Block a user