Skip to content

Commit 630df1d

Browse files
fix: preserve glibc 2.17 archive publication for v0.3.1 (#15)
1 parent 21a3864 commit 630df1d

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["furrow-core", "furrow-cli", "furrow-daemon"]
44

55
[workspace.package]
6-
version = "0.3.0"
6+
version = "0.3.1"
77
edition = "2021"
88
rust-version = "1.83"
99
license = "Apache-2.0"

‎furrow-core/src/archive.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,11 @@ pub fn restore(store: &Path, id: &str, destination: &Path) -> Result<Receipt> {
735735
let from = std::ffi::CString::new(root.as_os_str().as_bytes())?;
736736
let to = std::ffi::CString::new(destination.as_os_str().as_bytes())?;
737737
#[cfg(target_os = "linux")]
738+
// The kernel operation predates its glibc 2.28 wrapper. Use the syscall
739+
// directly so release binaries retain their glibc 2.17 compatibility floor.
738740
let renamed = unsafe {
739-
libc::renameat2(
741+
libc::syscall(
742+
libc::SYS_renameat2,
740743
libc::AT_FDCWD,
741744
from.as_ptr(),
742745
libc::AT_FDCWD,

0 commit comments

Comments
 (0)