diff options
author | Chen Li <chenli@uniontech.com> | 2020-10-12 13:46:00 +0800 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-10-15 11:37:45 +0200 |
commit | d3a5ae6ad16ba488dec7d15c6554585d9a405336 (patch) | |
tree | 4aec14277bbc241d355e49c5368782c2a34e310a /sysdeps/unix | |
parent | af79ed5fb6a9beb7386e53f0771ccdcb8837aa35 (diff) | |
download | glibc-d3a5ae6ad16ba488dec7d15c6554585d9a405336.tar.gz glibc-d3a5ae6ad16ba488dec7d15c6554585d9a405336.tar.xz glibc-d3a5ae6ad16ba488dec7d15c6554585d9a405336.zip |
statfs: add missing f_flags assignment
f_flags is added into struct statfs since Linux 2.6.36, which is lacked in glibc's statfs64.c until now. So mount flags is uninitialized on platforms having no statfs64 syscall in kernel, e.g., alpha and its derivation
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/statfs64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/statfs64.c b/sysdeps/unix/sysv/linux/statfs64.c index c941128637..2c293badc8 100644 --- a/sysdeps/unix/sysv/linux/statfs64.c +++ b/sysdeps/unix/sysv/linux/statfs64.c @@ -78,6 +78,7 @@ __statfs64 (const char *file, struct statfs64 *buf) buf->f_fsid = buf32.f_fsid; buf->f_namelen = buf32.f_namelen; buf->f_frsize = buf32.f_frsize; + buf->f_flags = buf32.f_flags; memcpy (buf->f_spare, buf32.f_spare, sizeof (buf32.f_spare)); return 0; |