Skip to content

Commit 376b88a

Browse files
committed
install: ignore umask with symbolic mode
1 parent 4d71a6e commit 376b88a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/uu/install/src/install.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use uucore::display::Quotable;
2525
use uucore::entries::{grp2gid, usr2uid};
2626
use uucore::error::{FromIo, UError, UResult, UUsageError};
2727
use uucore::fs::dir_strip_dot_for_creation;
28-
use uucore::mode::get_umask;
2928
use uucore::perms::{Verbosity, VerbosityLevel, wrap_chown};
3029
use uucore::process::{getegid, geteuid};
3130
#[cfg(feature = "selinux")]
@@ -339,7 +338,7 @@ fn behavior(matches: &ArgMatches) -> UResult<Behavior> {
339338

340339
let specified_mode: Option<u32> = if matches.contains_id(OPT_MODE) {
341340
let x = matches.get_one::<String>(OPT_MODE).ok_or(1)?;
342-
Some(mode::parse(x, considering_dir, get_umask()).map_err(|err| {
341+
Some(mode::parse(x, considering_dir, 0).map_err(|err| {
343342
show_error!(
344343
"{}",
345344
translate!("install-error-invalid-mode", "error" => err)

0 commit comments

Comments
 (0)