From: Arvin Schnell Date: Tue, 10 May 2011 15:55:12 +0000 (+0200) Subject: - improved check X-Git-Tag: v0.1.3~386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c24e587b261a2e09a6705301ae05842848c57dbd;p=thirdparty%2Fsnapper.git - improved check --- diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 5b705a18..a65ac008 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -549,7 +549,7 @@ namespace snapper throw AddConfigFailedException("illegal config name"); } - if (!boost::starts_with(subvolume, "/")) + if (!boost::starts_with(subvolume, "/") || !checkDir(subvolume)) { throw AddConfigFailedException("illegal subvolume"); }