summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorPaul Green <paulg@samba.org>2004-08-18 17:55:50 +0000
committerPaul Green <paulg@samba.org>2004-08-18 17:55:50 +0000
commit4ef875078b501dd09ac367403219aefa6010f91e (patch)
treef766d8254053d4e74b69750d468e2751b463f980 /source/lib
parent2f0672d2064a6e1d469bb789c31a57104f483ba4 (diff)
downloadsamba-4ef875078b501dd09ac367403219aefa6010f91e.tar.gz
samba-4ef875078b501dd09ac367403219aefa6010f91e.tar.xz
samba-4ef875078b501dd09ac367403219aefa6010f91e.zip
r1890: Cut down on debug messages from is_in_path. paulg
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 554f5ee79da..37933d13610 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -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);