]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1890: Cut down on debug messages from is_in_path. paulg
authorPaul Green <paulg@samba.org>
Wed, 18 Aug 2004 17:55:50 +0000 (17:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:23 +0000 (10:52 -0500)
source/lib/util.c

index 554f5ee79da30f7ac164dd8f2c74fb1667eaa476..37933d1361017929d284fda248007f4f4599f980 100644 (file)
@@ -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);