summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorGuillermo Vidal <guillermo.vidal@continental-corporation.com>2012-05-09 13:43:34 -0500
committerLennart Poettering <lennart@poettering.net>2012-05-22 01:45:11 +0200
commitfec2aa2f9ee0748fdb7148613b8a359d246cc32a (patch)
tree49373b47687501de910a93d0f80090a88048295f /src/shared/util.h
parent927735238d1cfe9bd9d9db71025e801c391cb156 (diff)
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.
Diffstat (limited to 'src/shared/util.h')
0 files changed, 0 insertions, 0 deletions