diff options
author | 2015-01-06 19:19:44 -0800 | |
---|---|---|
committer | 2015-01-06 19:51:01 -0800 | |
commit | fb87ee96d7dd0714d52004e4676629f8d9db732f (patch) | |
tree | 650a8563ae0ea966709d998aeb4391f81df4b87f /sysdeps/unix/sysv/linux/futimens.c | |
parent | Fix libm fesetround namespace (bug 17748). (diff) | |
download | glibc-fb87ee96d7dd0714d52004e4676629f8d9db732f.tar.xz glibc-fb87ee96d7dd0714d52004e4676629f8d9db732f.zip |
Fix incorrect mount table entry parsing in __getmntent_r
When mount entry contains only four fields and have more then one space or
tab at the and, mp.mnt_freq and mp.mnt_passno will be set to some specific
values as side effect from parsing of previus mount entry. It is because
sscanf(""," %d %d ", &a, &b) returns -1, but this case is unprocessed.
Values of mp.mnt_freq and mp.mnt_passno stays unchanged. This patch is
attempt to fix described issue by removing trailing tabs and spaces.
Diffstat (limited to 'sysdeps/unix/sysv/linux/futimens.c')
0 files changed, 0 insertions, 0 deletions