summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-25 20:10:58 +0000
committerJeremy Allison <jra@samba.org>1998-03-25 20:10:58 +0000
commit811a075e39f214c5313a00b067386b26ab189155 (patch)
treee5687fd34599168e741206165494252b55ceb6b1 /source3/lib
parentb6373786853fe9f41437b588054dad38ee3cee60 (diff)
downloadsamba-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.c2
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++)