From: Erik Skultety Date: Fri, 24 Feb 2017 13:33:08 +0000 (+0100) Subject: virfile: Fix virFileExists commentary X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=38a8489c01787146215847ba6a84a5b2c5799f1f;p=libvirt.git virfile: Fix virFileExists commentary Arguably though, function returning only on success is a very interesting, although quite impractical concept. Also, the errno isn't and shouldn't be preserved in this case, since the errno can be directly fed to the virReportSystemError. Signed-off-by: Erik Skultety --- diff --git a/src/util/virfile.c b/src/util/virfile.c index 6ba67bfbd3..41cdca953b 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -1820,7 +1820,8 @@ virFileIsDir(const char *path) * virFileExists: Check for presence of file * @path: Path of file to check * - * Returns if the file exists. Preserves errno in case it does not exist. + * Returns true if the file exists, false if it doesn't, setting errno + * appropriately. */ bool virFileExists(const char *path)