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:
@ -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++)
|
||||
|
Reference in New Issue
Block a user