]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- StreamProcessor::get_root_id() returns bool 39/head
authorOndrej Kozina <okozina@redhat.com>
Fri, 31 Jan 2014 14:32:35 +0000 (15:32 +0100)
committerOndrej Kozina <okozina@redhat.com>
Fri, 31 Jan 2014 14:32:35 +0000 (15:32 +0100)
snapper/Btrfs.cc

index ebfa7e490344fbc0d59bfd2d4d80678f3ea12c72..0d828b03583063e94055838663118cee6af9deef 100644 (file)
@@ -1103,7 +1103,7 @@ namespace snapper
 
        u64 parent_root_id = 0;
        string name1 = string(dir1.fullname(), base.fullname().size() + 1);
-       if (get_root_id(name1, &parent_root_id) < 0)
+       if (!get_root_id(name1, &parent_root_id))
        {
            y2err("could not resolve root_id for " << name1);
            throw BtrfsSendReceiveException();