mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
install: ignore umask with symbolic mode
This commit is contained in:
parent
4d71a6e2d2
commit
376b88ac72
1 changed files with 1 additions and 2 deletions
|
|
@ -25,7 +25,6 @@ use uucore::display::Quotable;
|
|||
use uucore::entries::{grp2gid, usr2uid};
|
||||
use uucore::error::{FromIo, UError, UResult, UUsageError};
|
||||
use uucore::fs::dir_strip_dot_for_creation;
|
||||
use uucore::mode::get_umask;
|
||||
use uucore::perms::{Verbosity, VerbosityLevel, wrap_chown};
|
||||
use uucore::process::{getegid, geteuid};
|
||||
#[cfg(feature = "selinux")]
|
||||
|
|
@ -339,7 +338,7 @@ fn behavior(matches: &ArgMatches) -> UResult<Behavior> {
|
|||
|
||||
let specified_mode: Option<u32> = if matches.contains_id(OPT_MODE) {
|
||||
let x = matches.get_one::<String>(OPT_MODE).ok_or(1)?;
|
||||
Some(mode::parse(x, considering_dir, get_umask()).map_err(|err| {
|
||||
Some(mode::parse(x, considering_dir, 0).map_err(|err| {
|
||||
show_error!(
|
||||
"{}",
|
||||
translate!("install-error-invalid-mode", "error" => err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue