2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Use RUNAS_USER_SPECIFIED and RUNAS_GROUP_SPECIFIED when deciding

whether to check runas user/group instead of checking runas_pw or
runas_gr.
This commit is contained in:
Todd C. Miller
2016-09-15 13:47:38 -06:00
parent 0ff95dfaaa
commit b165a5ff71
4 changed files with 6 additions and 16 deletions

View File

@@ -27,11 +27,6 @@
#undef IMPLIED
#define IMPLIED 2
/*
* Returns true if a runas user was specified on the command line.
*/
#define runas_user_set() (runas_pw != sudo_user.pw || runas_gr == NULL)
/*
* Initialize all tags to UNSPEC.
*/