chiark / gitweb /
Fixed handling of posix_fallocate() returned value
authorGuillermo Vidal <guillermo.vidal@continental-corporation.com>
Wed, 9 May 2012 18:43:34 +0000 (13:43 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 May 2012 23:45:11 +0000 (01:45 +0200)
According to the man pages of posix_fallocate, it returns zero on
success or an error number on failure; however,  errno is not set
on failure. If the kernel or a library other than glibc does not
support the function for example, EOPNOTSUPP will be returned and
the error will not be handled properly with original code.


No differences found