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.
  • Loading branch information
sthibaul authored and tgross35 committed Oct 19, 2024
1 parent f68f68c commit 043043f
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
Expand Up @@ -481,7 +481,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,
Expand Down

0 comments on commit 043043f

Please sign in to comment.