From: Arvin Schnell Date: Mon, 7 Feb 2011 11:12:02 +0000 (+0100) Subject: - check that snapshot directory exists X-Git-Tag: v0.1.3~512 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=512b6cc01b7c15d4968f6c1da82ab3bf42e7f227;p=thirdparty%2Fsnapper.git - check that snapshot directory exists --- diff --git a/snapper/Snapshot.cc b/snapper/Snapshot.cc index 6c8fb8c0..db6ed8d8 100644 --- a/snapper/Snapshot.cc +++ b/snapper/Snapshot.cc @@ -107,6 +107,12 @@ namespace snapper getChildValue(node, "pre_num", snapshot.pre_num); + if (!checkDir(snapshot.snapshotDir())) + { + y2err("snapshot directory does not exist. not adding snapshot " << num); + continue; + } + entries.push_back(snapshot); }