Skip to content

Commit a753919

Browse files
sthibaultgross35
authored andcommitted
hurd: Fix st_dev name
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)
1 parent ae7b38d commit a753919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/hurd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ s! {
482482

483483
pub struct stat64 {
484484
pub st_fstype: ::c_int,
485-
pub st_fsid: __fsid_t,
485+
pub st_dev: __fsid_t, /* Actually st_fsid */
486486
pub st_ino: __ino64_t,
487487
pub st_gen: ::c_uint,
488488
pub st_rdev: __dev_t,

0 commit comments

Comments
 (0)