blob: 74f2ff8142b08aef9d298582e65df09add0dc33f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- cargo-crates/pidfile-rs-0.1.0/src/lib.rs.orig 2021-10-04 13:21:00 UTC
+++ cargo-crates/pidfile-rs-0.1.0/src/lib.rs
@@ -121,7 +121,7 @@ impl Pidfile {
Ok(c_path) => {
let mut old_pid: pid_t = -1;
let pidfn = unsafe {
- bsd_pidfile_open(c_path.as_ptr(), permissions.mode(), &mut old_pid)
+ bsd_pidfile_open(c_path.as_ptr(), permissions.mode() as mode_t, &mut old_pid)
};
if !pidfn.is_null() {
return Ok(Pidfile {
|