mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Revert to octal mode repr in autoload and io
This commit is contained in:
parent
6ef8125c96
commit
341fd7ca16
2 changed files with 2 additions and 12 deletions
|
@ -341,12 +341,7 @@ fn test_autoload() {
|
||||||
let fd = wopen_cloexec(
|
let fd = wopen_cloexec(
|
||||||
path,
|
path,
|
||||||
OFlag::O_RDWR | OFlag::O_CREAT,
|
OFlag::O_RDWR | OFlag::O_CREAT,
|
||||||
Mode::S_IRUSR
|
Mode::from_bits(0o666).unwrap(),
|
||||||
| Mode::S_IWUSR
|
|
||||||
| Mode::S_IRGRP
|
|
||||||
| Mode::S_IWGRP
|
|
||||||
| Mode::S_IROTH
|
|
||||||
| Mode::S_IWOTH,
|
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
write_loop(&fd, "Hello".as_bytes()).unwrap();
|
write_loop(&fd, "Hello".as_bytes()).unwrap();
|
||||||
|
|
|
@ -1007,12 +1007,7 @@ const FILE_ERROR: &wstr = L!("An error occurred while redirecting file '%ls'");
|
||||||
const NOCLOB_ERROR: &wstr = L!("The file '%ls' already exists");
|
const NOCLOB_ERROR: &wstr = L!("The file '%ls' already exists");
|
||||||
|
|
||||||
/// Base open mode to pass to calls to open.
|
/// Base open mode to pass to calls to open.
|
||||||
const OPEN_MASK: Mode = Mode::S_IRUSR
|
const OPEN_MASK: Mode = unsafe { Mode::from_bits_unchecked(0o666) };
|
||||||
.union(Mode::S_IWUSR)
|
|
||||||
.union(Mode::S_IRGRP)
|
|
||||||
.union(Mode::S_IWGRP)
|
|
||||||
.union(Mode::S_IROTH)
|
|
||||||
.union(Mode::S_IWOTH);
|
|
||||||
|
|
||||||
/// Provide the fd monitor used for background fillthread operations.
|
/// Provide the fd monitor used for background fillthread operations.
|
||||||
fn fd_monitor() -> &'static mut FdMonitor {
|
fn fd_monitor() -> &'static mut FdMonitor {
|
||||||
|
|
Loading…
Reference in a new issue