diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index bf8d9ae6c..5c972d97f 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -44,7 +44,7 @@ #include /* - * Look up the user in the sudoers prase tree for pseudo-commands like + * Look up the user in the sudoers parse tree for pseudo-commands like * list, verify and kill. */ static int @@ -168,6 +168,9 @@ sudoers_lookup_check(struct sudo_nss *nss, struct passwd *pw, } *matching_cs = cs; *defs = &priv->defaults; + sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO, + "userspec matched @ %s:%d %s", us->file, us->lineno, + cmnd_match ? "allowed" : "denied"); debug_return_int(cmnd_match); } } @@ -270,7 +273,7 @@ apply_cmndspec(struct cmndspec *cs) } /* - * Look up the user in the sudoers prase tree and check to see if they are + * Look up the user in the sudoers parse tree and check to see if they are * allowed to run the specified command on this host as the target user. */ int diff --git a/plugins/sudoers/parse.h b/plugins/sudoers/parse.h index 8180f29d2..30813f6d1 100644 --- a/plugins/sudoers/parse.h +++ b/plugins/sudoers/parse.h @@ -181,8 +181,8 @@ struct userspec { struct member_list users; /* list of users */ struct privilege_list privileges; /* list of privileges */ struct comment_list comments; /* optional comments */ - int lineno; - char *file; + int lineno; /* line number in sudoers */ + char *file; /* name of sudoers file */ }; /*