1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

Fix for is_in_path from "Steven Hartland" <steven_hartland@pa.press.net> -

hide files was not working.
Jeremy.
(This used to be commit 8d686f3b6b)
This commit is contained in:
Jeremy Allison
1998-03-25 20:10:58 +00:00
parent b637378685
commit 811a075e39

View File

@ -4236,7 +4236,7 @@ BOOL is_in_path(char *name, name_compare_entry *namelist)
/* Get the last component of the unix name. */
p = strrchr(name, '/');
strncpy(last_component, p ? p : name, sizeof(last_component)-1);
strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);
last_component[sizeof(last_component)-1] = '\0';
for(; namelist->name != NULL; namelist++)