]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix bug in identifying sub-mounts
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 27 Nov 2013 15:21:41 +0000 (15:21 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 28 Nov 2013 11:49:01 +0000 (11:49 +0000)
commit84fd470d3d8c8e27abca8b2f3fc601c7cd58eadb
treecbacbcb0b8107a215afa6148f040513aa2d4acd8
parentd45b833d14477b46e084ef8c629522afa36c7322
Fix bug in identifying sub-mounts

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>
src/util/virfile.c
tests/virfiledata/mounts2.txt [new file with mode: 0644]
tests/virfiletest.c