]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
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)
commitfec2aa2f9ee0748fdb7148613b8a359d246cc32a
tree49373b47687501de910a93d0f80090a88048295f
parent927735238d1cfe9bd9d9db71025e801c391cb156
Fixed handling of posix_fallocate() returned value

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.
src/journal/journal-file.c