mirror of
https://github.com/nivekuil/rip
synced 2024-11-22 19:53:12 +00:00
Hard code fifo mode for osx
This commit is contained in:
parent
217b2946a5
commit
307c7e0912
1 changed files with 1 additions and 2 deletions
|
@ -247,9 +247,8 @@ fn copy_file<S, D>(source: S, dest: D) -> io::Result<()>
|
|||
}
|
||||
} else if filetype.is_fifo() {
|
||||
let path = std::ffi::CString::new(dest.to_str().unwrap()).unwrap();
|
||||
let mode = metadata.permissions().mode();
|
||||
unsafe {
|
||||
libc::mkfifo(path.as_ptr(), mode);
|
||||
libc::mkfifo(path.as_ptr(), 0o644);
|
||||
}
|
||||
} else if filetype.is_symlink() {
|
||||
let target = try!(fs::read_link(source));
|
||||
|
|
Loading…
Reference in a new issue