Skip to content

Commit d3ca31b

Browse files
committed
refactor: rename variable 'opath' to 'chmods' in safe_traversal.rs
1 parent c7acfab commit d3ca31b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uucore/src/lib/features/safe_traversal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
// spell-checker:ignore CLOEXEC RDONLY TOCTOU closedir dirp fdopendir fstatat openat REMOVEDIR unlinkat smallfile
1212
// spell-checker:ignore RAII dirfd fchownat fchown FchmodatFlags fchmodat fchmod mkdirat CREAT WRONLY ELOOP ENOTDIR
13-
// spell-checker:ignore atimensec mtimensec ctimensec
13+
// spell-checker:ignore atimensec mtimensec ctimensec opath chmods
1414

1515
#[cfg(test)]
1616
use std::os::unix::ffi::OsStringExt;
@@ -407,7 +407,7 @@ impl DirFd {
407407
let proc_cstr = std::ffi::CStr::from_bytes_with_nul(proc_path.as_bytes())
408408
.map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "invalid proc path"))?;
409409

410-
chmod(proc_cstr, Mode::from_bits_truncate(mode as u32))
410+
chmod(proc_cstr, Mode::from_bits_truncate(mode))
411411
.map_err(|e| io::Error::from_raw_os_error(e.raw_os_error()))
412412
}
413413

0 commit comments

Comments
 (0)