]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved check
authorArvin Schnell <aschnell@suse.de>
Tue, 10 May 2011 15:55:12 +0000 (17:55 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 10 May 2011 15:55:12 +0000 (17:55 +0200)
snapper/Snapper.cc

index 5b705a183244d098122b7f4f38d567fe969ba183..a65ac008a2cbf7a77a931b750a0134598a21f1c7 100644 (file)
@@ -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");
        }