mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r1890: Cut down on debug messages from is_in_path. paulg
(This used to be commit 8b1c2126af3f29a3708b6823616ecec43ce63b95)
This commit is contained in:
parent
33b2bc4930
commit
3ced3cd8ae
@ -1495,14 +1495,13 @@ BOOL is_in_path(const char *name, name_compare_entry *namelist, BOOL case_sensit
|
||||
pstring last_component;
|
||||
char *p;
|
||||
|
||||
DEBUG(8, ("is_in_path: %s\n", name));
|
||||
|
||||
/* if we have no list it's obviously not in the path */
|
||||
if((namelist == NULL ) || ((namelist != NULL) && (namelist[0].name == NULL))) {
|
||||
DEBUG(8,("is_in_path: no name list.\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
DEBUG(8, ("is_in_path: %s\n", name));
|
||||
|
||||
/* Get the last component of the unix name. */
|
||||
p = strrchr_m(name, '/');
|
||||
strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user