Go back to using a callback for runas_default to keep runas_pw in

sync.  This is needed to make per-entry runas_default settings work
with LDAP-based sudoers.  Instead of declaring it a callback in
def_data.in, sudo and testsudoers poke sudo_defs_table[] which is
a bit naughty, but avoids requiring stub functions in visudo and
the tests.
This commit is contained in:
Todd C. Miller
2011-08-09 14:54:42 -04:00
parent 53656020f7
commit 01ae3d4771
3 changed files with 27 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ struct sudo_defs_types {
int type;
char *desc;
struct def_values *values;
int (*callback)(char *);
int (*callback)(const char *);
union {
int flag;
int ival;