1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Modified some debug messages, moved from 5 -> 8.

Jeremy (jallison@whistle.com)
(This used to be commit cb83c74a6c)
This commit is contained in:
Jeremy Allison 1997-10-02 02:36:11 +00:00
parent c557bb0517
commit c9cf77a6bb
2 changed files with 15 additions and 15 deletions

View File

@ -3840,14 +3840,14 @@ BOOL is_in_path(char *name, name_compare_entry *namelist)
pstring last_component;
char *p;
DEBUG(5, ("is_in_path: %s\n", name));
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(5,("is_in_path: no name list.\n"));
{
DEBUG(8,("is_in_path: no name list.\n"));
return False;
}
}
/* Get the last component of the unix name. */
p = strrchr(name, '/');
@ -3861,7 +3861,7 @@ BOOL is_in_path(char *name, name_compare_entry *namelist)
/* look for a wildcard match. */
if (mask_match(last_component, namelist->name, case_sensitive, False))
{
DEBUG(5,("is_in_path: mask match succeeded\n"));
DEBUG(8,("is_in_path: mask match succeeded\n"));
return True;
}
}
@ -3870,12 +3870,12 @@ BOOL is_in_path(char *name, name_compare_entry *namelist)
if((case_sensitive && (strcmp(last_component, namelist->name) == 0))||
(!case_sensitive && (StrCaseCmp(last_component, namelist->name) == 0)))
{
DEBUG(5,("is_in_path: match succeeded\n"));
DEBUG(8,("is_in_path: match succeeded\n"));
return True;
}
}
}
DEBUG(5,("is_in_path: match not found\n"));
DEBUG(8,("is_in_path: match not found\n"));
return False;
}

View File

@ -189,7 +189,7 @@ int dos_mode(int cnum,char *path,struct stat *sbuf)
int result = 0;
extern struct current_user current_user;
DEBUG(5,("dos_mode: %d %s\n", cnum, path));
DEBUG(8,("dos_mode: %d %s\n", cnum, path));
if (CAN_WRITE(cnum) && !lp_alternate_permissions(SNUM(cnum))) {
if (!((sbuf->st_mode & S_IWOTH) ||
@ -241,15 +241,15 @@ int dos_mode(int cnum,char *path,struct stat *sbuf)
result |= aHIDDEN;
}
DEBUG(5,("dos_mode returning "));
DEBUG(8,("dos_mode returning "));
if (result & aHIDDEN) DEBUG(5, ("h"));
if (result & aRONLY ) DEBUG(5, ("r"));
if (result & aSYSTEM) DEBUG(5, ("s"));
if (result & aDIR ) DEBUG(5, ("d"));
if (result & aARCH ) DEBUG(5, ("a"));
if (result & aHIDDEN) DEBUG(8, ("h"));
if (result & aRONLY ) DEBUG(8, ("r"));
if (result & aSYSTEM) DEBUG(8, ("s"));
if (result & aDIR ) DEBUG(8, ("d"));
if (result & aARCH ) DEBUG(8, ("a"));
DEBUG(5,("\n"));
DEBUG(8,("\n"));
return(result);
}