Allow the -u flag to be used in conjunction with the -v flag as per
older versions of sudo.
This commit is contained in:
2
sudo.c
2
sudo.c
@@ -1083,7 +1083,7 @@ parse_args(argc, argv)
|
||||
usage(1);
|
||||
}
|
||||
if ((runas_user != NULL || runas_group != NULL) &&
|
||||
!ISSET(mode, MODE_EDIT | MODE_RUN | MODE_CHECK)) {
|
||||
!ISSET(mode, MODE_EDIT | MODE_RUN | MODE_CHECK | MODE_VALIDATE)) {
|
||||
usage(1);
|
||||
}
|
||||
if (list_pw != NULL && mode != MODE_LIST && mode != MODE_CHECK) {
|
||||
|
Reference in New Issue
Block a user