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 committed Jul 25, 2024
1 parent 0e28c86 commit da8ab35
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 @@ -476,7 +476,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 da8ab35

Please sign in to comment.