mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
now uses user_pw_ent and simple macros to get at the contents
This commit is contained in:
12
sudo.h
12
sudo.h
@@ -131,6 +131,16 @@ extern int top;
|
||||
#define PERM_FULL_USER 0x03
|
||||
#define PERM_SUDOERS 0x04
|
||||
|
||||
/*
|
||||
* Shortcuts for user_pw_ent
|
||||
*/
|
||||
#define user_name (user_pw_ent -> pw_name)
|
||||
#define user_passwd (user_pw_ent -> pw_passwd)
|
||||
#define user_uid (user_pw_ent -> pw_uid)
|
||||
#define user_gid (user_pw_ent -> pw_gid)
|
||||
#define user_shell (user_pw_ent -> pw_shell)
|
||||
#define user_dir (user_pw_ent -> pw_dir)
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
@@ -170,7 +180,7 @@ extern char host[];
|
||||
extern char cwd[];
|
||||
extern struct interface *interfaces;
|
||||
extern int num_interfaces;
|
||||
extern struct passwd *sudo_pw_ent;
|
||||
extern struct passwd *user_pw_ent;
|
||||
extern char *tty;
|
||||
extern char *cmnd;
|
||||
extern char *cmnd_args;
|
||||
|
Reference in New Issue
Block a user