Store column number for aliases, defaults and userspecs too.
This is used to provided the column number along with the line number in error messages. For aliases we store the column of the alias name, not the value since that is what visudo generally needs.
This commit is contained in:
@@ -165,8 +165,8 @@ 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->file : "???", us->lineno,
|
||||
"userspec matched @ %s:%d:%d: %s",
|
||||
us->file ? us->file : "???", us->line, us->column,
|
||||
cmnd_match ? "allowed" : "denied");
|
||||
debug_return_int(cmnd_match);
|
||||
}
|
||||
|
Reference in New Issue
Block a user