]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- prefer later mount entries during filesystem detection
authorArvin Schnell <aschnell@suse.de>
Fri, 5 Aug 2011 09:35:34 +0000 (11:35 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 5 Aug 2011 09:35:34 +0000 (11:35 +0200)
snapper/Snapper.cc

index 4929565aa6dccaf4f4ae96be8bbc293bd6aa3e4c..6b97757fe8adea8250cb08f4d1be63cce6d68f5a 100644 (file)
@@ -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;