public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] statfs: add missing f_flags assignment
@ 2020-10-15  9:38 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-10-15  9:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d3a5ae6ad16ba488dec7d15c6554585d9a405336

commit d3a5ae6ad16ba488dec7d15c6554585d9a405336
Author: Chen Li <chenli@uniontech.com>
Date:   Mon Oct 12 13:46:00 2020 +0800

    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

Diff:
---
 sysdeps/unix/sysv/linux/statfs64.c | 1 +
 1 file changed, 1 insertion(+)

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-15  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15  9:38 [glibc] statfs: add missing f_flags assignment Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).