Skip to content

Commit 248fa95

Browse files
Switch out libc::renameat for libc::syscall
1 parent b96a88d commit 248fa95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/devices/src/virtio/fs/linux/overlayfs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,11 +2008,13 @@ impl OverlayFs {
20082008
}
20092009
#[cfg(target_env = "musl")]
20102010
{
2011-
libc::renameat(
2011+
libc::syscall(
2012+
libc::SYS_renameat2,
20122013
old_parent_data.file.as_raw_fd(),
20132014
old_name.as_ptr(),
20142015
new_parent_data.file.as_raw_fd(),
20152016
new_name.as_ptr(),
2017+
flags,
20162018
)
20172019
}
20182020
};

0 commit comments

Comments
 (0)