Fix a typo.
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
#include <gram.h>
|
#include <gram.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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.
|
* list, verify and kill.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
@@ -168,6 +168,9 @@ sudoers_lookup_check(struct sudo_nss *nss, struct passwd *pw,
|
|||||||
}
|
}
|
||||||
*matching_cs = cs;
|
*matching_cs = cs;
|
||||||
*defs = &priv->defaults;
|
*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);
|
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.
|
* allowed to run the specified command on this host as the target user.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
|
@@ -181,8 +181,8 @@ struct userspec {
|
|||||||
struct member_list users; /* list of users */
|
struct member_list users; /* list of users */
|
||||||
struct privilege_list privileges; /* list of privileges */
|
struct privilege_list privileges; /* list of privileges */
|
||||||
struct comment_list comments; /* optional comments */
|
struct comment_list comments; /* optional comments */
|
||||||
int lineno;
|
int lineno; /* line number in sudoers */
|
||||||
char *file;
|
char *file; /* name of sudoers file */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user