This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15661] posix_fallocate fallback code buggy and dangerous


https://sourceware.org/bugzilla/show_bug.cgi?id=15661

--- Comment #12 from Jonathan Briggs <zlynx at acm dot org> ---
(In reply to Rich Felker from comment #8)
> I think the XSH 2.9.7 justification is something of a cop-out, and the
> behavior is still undesirable/QoI-issue, but at least it's arguably
> conforming to the extent that applications should avoid depending on
> stricter behavior.

This is definitely a cop-out and very undesirable. Absolutely no one will
expect apparently random zero bytes to appear in their files because of calling
posix_fallocate because the function isn't supposed to write anything to the
file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]