From: Arvin Schnell Date: Fri, 28 Aug 2020 10:49:13 +0000 (+0200) Subject: - avoid endless loop X-Git-Tag: v0.8.14~32^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0674ad91140b3e3a75d79e1f36c091be1845f0fa;p=thirdparty%2Fsnapper.git - avoid endless loop --- diff --git a/snapper/MntTable.cc b/snapper/MntTable.cc index b352f351..4cfba976 100644 --- a/snapper/MntTable.cc +++ b/snapper/MntTable.cc @@ -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);