Allow the -u flag to be used in conjunction with the -v flag as per

older versions of sudo.
This commit is contained in:
Todd C. Miller
2009-12-09 16:19:30 +00:00
parent f325cfac87
commit 8b48ab71e4
3 changed files with 4 additions and 3 deletions

2
sudo.c
View File

@@ -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) {