diff options
author | Jeremy Allison <jra@samba.org> | 1998-03-25 20:10:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-03-25 20:10:58 +0000 |
commit | 811a075e39f214c5313a00b067386b26ab189155 (patch) | |
tree | e5687fd34599168e741206165494252b55ceb6b1 /source3/lib | |
parent | b6373786853fe9f41437b588054dad38ee3cee60 (diff) | |
download | samba-811a075e39f214c5313a00b067386b26ab189155.tar.gz samba-811a075e39f214c5313a00b067386b26ab189155.tar.bz2 samba-811a075e39f214c5313a00b067386b26ab189155.zip |
Fix for is_in_path from "Steven Hartland" <steven_hartland@pa.press.net> -
hide files was not working.
Jeremy.
(This used to be commit 8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index d39fc16a36..2c7b52bbef 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -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++) |