1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Merge pull request #3857 from niyaznigmatullin/fix_chcon_fail

Fix GNU `tests/misc/chcon-fail.sh` test
This commit is contained in:
Sylvestre Ledru 2022-08-20 20:55:02 +02:00 committed by GitHub
commit a07dba9b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,7 +357,7 @@ fn parse_command_line(config: clap::Command, args: impl uucore::Args) -> Result<
// By default, do not preserve root. // By default, do not preserve root.
let preserve_root = matches.contains_id(options::preserve_root::PRESERVE_ROOT); let preserve_root = matches.contains_id(options::preserve_root::PRESERVE_ROOT);
let mut files = matches.get_many::<PathBuf>("FILE").unwrap_or_default(); let mut files = matches.get_many::<OsString>("FILE").unwrap_or_default();
let mode = if let Some(path) = matches.get_one::<OsString>(options::REFERENCE) { let mode = if let Some(path) = matches.get_one::<OsString>(options::REFERENCE) {
CommandLineMode::ReferenceBased { CommandLineMode::ReferenceBased {