mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Don't assume that if guestfs_case_sensitive_path returns NULL, that it
means the file does not exist.
The (previously undefined) behaviour of case_sensitive_path was that a
NULL return meant "either the file doesn't exist or some other error".
However in commit 973581780d this was
changed so that if the last element of the path didn't exist, it was
assumed to be a new file and the (non-NULL) path of the new file is
returned.
This change breaks code (including in libguestfs) which tries to use
case_sensitive_path as a dual-purpose call to fix-up a path for
Windows and test if the file exists. Such code should be rewritten so
that it explicitly tests for file existence after calling
case_sensitive_path.
I examined all the calls to case_sensitive_path in libguestfs and
modified them where necessary.
Sys::Guestfs ------------ This directory contains the Perl bindings for the libguestfs API. The basic libguestfs bindings have the name 'Sys::Guestfs'. As with all other language bindings, these bindings are generated automatically. See generator/ directory. Sys::Guestfs::Lib ----------------- Because we use Perl for writing lots of additional tools around libguestfs, the Perl bindings also contain an extra library of useful functions, called 'Sys::Guestfs::Lib'. This extra library is entirely optional, and only enhances the usefulness of the ordinary libguestfs API. One of the features of this library is tighter libvirt integration.