From: Ondrej Kozina Date: Fri, 31 Jan 2014 14:32:35 +0000 (+0100) Subject: - StreamProcessor::get_root_id() returns bool X-Git-Tag: v0.2.1~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d98e4cf016f293d92c857158497f292d4d60ca66;p=thirdparty%2Fsnapper.git - StreamProcessor::get_root_id() returns bool --- diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index ebfa7e49..0d828b03 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -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();