mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
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
This commit is contained in:
parent
af79ed5fb6
commit
d3a5ae6ad1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user