From: Arvin Schnell Date: Fri, 5 Aug 2011 09:35:34 +0000 (+0200) Subject: - prefer later mount entries during filesystem detection X-Git-Tag: v0.1.3~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccc546fc3c09242ab4e1fb5e022630098c721519;p=thirdparty%2Fsnapper.git - prefer later mount entries during filesystem detection --- diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 4929565a..6b97757f 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -655,7 +655,7 @@ namespace snapper if (strcmp(m->mnt_type, "rootfs") == 0) continue; - if (strlen(m->mnt_dir) > best_match.length() && is_subpath(subvolume, m->mnt_dir)) + if (strlen(m->mnt_dir) >= best_match.length() && is_subpath(subvolume, m->mnt_dir)) { best_match = m->mnt_dir; fstype = m->mnt_type;