From: Guillermo Vidal Date: Wed, 9 May 2012 18:43:34 +0000 (-0500) Subject: Fixed handling of posix_fallocate() returned value X-Git-Tag: v183~53 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fec2aa2f9ee0748fdb7148613b8a359d246cc32a;hp=fec2aa2f9ee0748fdb7148613b8a359d246cc32a;p=elogind.git 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. ---