util_path: Make true/false handling consistent with other functions

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
Michael Holzheu
2017-11-27 14:38:21 +01:00
parent d0e2caf0ff
commit 2b92bc4c08

View File

@@ -213,7 +213,7 @@ bool util_path_exists(const char *fmt, ...)
bool rc;
UTIL_VASPRINTF(&path, fmt, ap);
rc = access(path, F_OK) == 0;
rc = access(path, F_OK) == 0 ? true : false;
free(path);
return rc;
}