We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed7c6b commit f65851dCopy full SHA for f65851d
src/abi/linux_abi.rs
@@ -540,6 +540,12 @@ unsafe impl ByteValued for Attr {}
540
541
impl From<libc::stat64> for Attr {
542
fn from(st: libc::stat64) -> Attr {
543
+ Attr::with_flags(st, 0)
544
+ }
545
+}
546
+
547
+impl Attr {
548
+ pub fn with_flags(st: libc::stat64, flags: u32) -> Attr {
549
Attr {
550
ino: st.st_ino,
551
size: st.st_size as u64,
@@ -556,7 +562,7 @@ impl From<libc::stat64> for Attr {
556
562
gid: st.st_gid,
557
563
rdev: st.st_rdev as u32,
558
564
blksize: st.st_blksize as u32,
559
- ..Default::default()
565
+ flags: flags as u32,
560
566
}
561
567
568
0 commit comments