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

The --preserve-env=list option may be specified more than once.

This commit is contained in:
Todd C. Miller
2020-05-07 11:11:43 -06:00
parent deb9ce7d12
commit 92199e25c4
3 changed files with 8 additions and 6 deletions

View File

@@ -356,8 +356,6 @@ parse_args(int argc, char **argv, int *old_optind, int *nargc, char ***nargv,
sudo_settings[ARG_PRESERVE_ENVIRONMENT].value = "true";
SET(flags, MODE_PRESERVE_ENV);
} else {
if (extra_env.env_len != 0)
usage();
parse_env_list(&extra_env, optarg);
}
break;