From 811a075e39f214c5313a00b067386b26ab189155 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 Mar 1998 20:10:58 +0000 Subject: Fix for is_in_path from "Steven Hartland" - hide files was not working. Jeremy. (This used to be commit 8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f) --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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++) -- cgit