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 | 8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f (patch) | |
tree | a1eb578efae2f0d0bd6e50b78208c2e8daaaea81 /source/lib/util.c | |
parent | b14551d316c0d41daeaecbae3e30993e9fc1cca6 (diff) | |
download | samba-8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f.tar.gz samba-8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f.tar.xz samba-8d686f3b6b9008aad8c80bf2b1781a9c3359cc3f.zip |
Fix for is_in_path from "Steven Hartland" <steven_hartland@pa.press.net> -
hide files was not working.
Jeremy.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index d39fc16a36a..2c7b52bbef7 100644 --- a/source/lib/util.c +++ b/source/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++) |