Skip to content

Commit

Permalink
hurd: Fix st_dev name
Browse files Browse the repository at this point in the history
Currently struct stat and struct stat64 are not coherent: struct stat is
using st_dev, and struct stat64 is using st_fsid.

st_dev is the more commonly-known name, already used by e.g. ~45 rust
software in Debian, so better fix st_fsid into st_dev, rather than having to
uselessly spend time hand-patching all these software.

(backport <rust-lang#3785>)
(cherry picked from commit 043043f)
sthibaul authored and tgross35 committed Nov 6, 2024

Verified

This commit was signed with the committer’s verified signature.
Loic-Dumas Loïc Dumas
1 parent ae7b38d commit a753919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/hurd/mod.rs
Original file line number Diff line number Diff line change
@@ -482,7 +482,7 @@ s! {

pub struct stat64 {
pub st_fstype: ::c_int,
pub st_fsid: __fsid_t,
pub st_dev: __fsid_t, /* Actually st_fsid */
pub st_ino: __ino64_t,
pub st_gen: ::c_uint,
pub st_rdev: __dev_t,

0 comments on commit a753919

Please sign in to comment.