]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- avoid endless loop
authorArvin Schnell <aschnell@suse.de>
Fri, 28 Aug 2020 10:49:13 +0000 (12:49 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 28 Aug 2020 10:49:13 +0000 (12:49 +0200)
snapper/MntTable.cc

index b352f35118468c71f50dd3e8f0d86ae3b0a18461..4cfba9760daa33fa17ea615ce808279c9f95c201 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) [2015] SUSE LLC
+ * Copyright (c) [2015-2020] SUSE LLC
  *
  * All Rights Reserved.
  *
@@ -40,7 +40,7 @@ namespace snapper
            if (fs)
                return fs;
 
-           if (tmp == "/")
+           if (tmp == "/" || tmp == ".")
                return nullptr;
 
            tmp = dirname(tmp);