diff --git a/Cargo.toml b/Cargo.toml index ba5429d..f3f91ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fs-swap" -version = "0.2.4" +version = "0.2.4-1" authors = ["debris "] description = "Cross-platform implementation of path swap" license = "MIT" diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 8cb4539..7d02db6 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -6,7 +6,7 @@ use std::{io, ffi}; unsafe fn renameat2( olddirfd: libc::c_int, oldpath: *const libc::c_char, - newdirfd: libc::c_int, newpath: *const libc::c_char, flags: libc::c_int + newdirfd: libc::c_int, newpath: *const libc::c_char, flags: libc::c_uint ) -> libc::c_int { libc::syscall(libc::SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, flags) as libc::c_int }