
On 11/27/2013 09:31 AM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange@redhat.com>
The code for extracting sub-mounts would just do a STRPREFIX check on the mount. This was flawed because if there were the following mounts
/etc/aliases /etc/aliases.db
and '/etc/aliases' was asked for, it would return both even though the latter isn't a sub-mount.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com> ---
ACK (hmm, I remember pointing out the STRPREFIX issue on a different patch: https://www.redhat.com/archives/libvir-list/2013-September/msg00657.html; I guess that means we have checked for a prefix directory in more than one instance - worth factoring it into a helper function?) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org