]> xenbits.xensource.com Git - libvirt.git/commitdiff
virfile: Fix virFileExists commentary
authorErik Skultety <eskultet@redhat.com>
Fri, 24 Feb 2017 13:33:08 +0000 (14:33 +0100)
committerErik Skultety <eskultet@redhat.com>
Fri, 24 Feb 2017 13:46:50 +0000 (14:46 +0100)
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 <eskultet@redhat.com>
src/util/virfile.c

index 6ba67bfbd36009c5c4f8eefd85f92c969a8940a7..41cdca953b282eea23f11a4f0d240310940f4a2a 100644 (file)
@@ -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)