]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: add file exists check in virReadFCHost
authorBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Mon, 16 Jan 2017 13:27:33 +0000 (14:27 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 18 Jan 2017 11:25:55 +0000 (06:25 -0500)
commitd59226926e12545489d516777fcf8714800453af
tree3fa30f47700301f17650416b5539f1102d442148
parent0d157b3fed835e20385150af549cfdc107ff4304
util: add file exists check in virReadFCHost

File open errors are prevented by a file exists check before
virFileReadAll is called since all callers of the virReadFCHost
method handle errors themselves based on the NULL return anyway.
Also included is a minor spelling correction in a comment.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
src/util/virutil.c