mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +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(
|
||||
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 @@ const FILE_ERROR: &wstr = L!("An error occurred while redirecting file '%ls'");
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue