mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 07:21:14 -03:00
Revert to octal mode repr in autoload and io
This commit is contained in:
committed by
Johannes Altmanninger
parent
6ef8125c96
commit
341fd7ca16
@@ -341,12 +341,7 @@ fn touch_file(path: &wstr) {
|
||||
let fd = wopen_cloexec(
|
||||
path,
|
||||
OFlag::O_RDWR | OFlag::O_CREAT,
|
||||
Mode::S_IRUSR
|
||||
| Mode::S_IWUSR
|
||||
| Mode::S_IRGRP
|
||||
| Mode::S_IWGRP
|
||||
| Mode::S_IROTH
|
||||
| Mode::S_IWOTH,
|
||||
Mode::from_bits(0o666).unwrap(),
|
||||
)
|
||||
.unwrap();
|
||||
write_loop(&fd, "Hello".as_bytes()).unwrap();
|
||||
|
||||
@@ -1007,12 +1007,7 @@ pub fn out_is_terminal(&self) -> bool {
|
||||
const NOCLOB_ERROR: &wstr = L!("The file '%ls' already exists");
|
||||
|
||||
/// Base open mode to pass to calls to open.
|
||||
const OPEN_MASK: Mode = Mode::S_IRUSR
|
||||
.union(Mode::S_IWUSR)
|
||||
.union(Mode::S_IRGRP)
|
||||
.union(Mode::S_IWGRP)
|
||||
.union(Mode::S_IROTH)
|
||||
.union(Mode::S_IWOTH);
|
||||
const OPEN_MASK: Mode = unsafe { Mode::from_bits_unchecked(0o666) };
|
||||
|
||||
/// Provide the fd monitor used for background fillthread operations.
|
||||
fn fd_monitor() -> &'static mut FdMonitor {
|
||||
|
||||
Reference in New Issue
Block a user