From 7088a91fa3611317c8315302bbe6e2faf0c6e6cd Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sat, 7 Jul 2018 15:53:03 +0200 Subject: [PATCH] btrbk: cosmetics: sanitize trailing "/." in check_file() --- btrbk | 1 + 1 file changed, 1 insertion(+) diff --git a/btrbk b/btrbk index 5bdd36c..688c26f 100755 --- a/btrbk +++ b/btrbk @@ -3112,6 +3112,7 @@ sub check_file($$;@) if($sanitize) { $file =~ s/\/+/\//g; # sanitize multiple slash $file =~ s/\/\.\//\//g; # sanitize "/./" -> "/" + $file =~ s/\/\.$/\//; # sanitize trailing "/." -> "/" $file =~ s/\/$// unless($file eq '/'); # remove trailing slash } return $file;