Skip to content

Commit 11c829e

Browse files
Switch out libc::renameat for libc::renameat2
1 parent b96a88d commit 11c829e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,11 +2008,12 @@ impl OverlayFs {
20082008
}
20092009
#[cfg(target_env = "musl")]
20102010
{
2011-
libc::renameat(
2011+
libc::renameat2(
20122012
old_parent_data.file.as_raw_fd(),
20132013
old_name.as_ptr(),
20142014
new_parent_data.file.as_raw_fd(),
20152015
new_name.as_ptr(),
2016+
flags,
20162017
)
20172018
}
20182019
};

0 commit comments

Comments
 (0)