From 765e0da23f4abfdc3ae43a6975545e7bb5426ff5 Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Thu, 27 Apr 2023 14:04:45 +0200 Subject: [PATCH] changed regex to allow @ in directory storage paths @ is often used to signify btrfs subvolumes. Signed-off-by: Markus Frank --- src/PVE/Storage/DirPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/DirPlugin.pm b/src/PVE/Storage/DirPlugin.pm index 37e322b..2efa8d5 100644 --- a/src/PVE/Storage/DirPlugin.pm +++ b/src/PVE/Storage/DirPlugin.pm @@ -241,7 +241,7 @@ sub check_config { my ($self, $sectionId, $config, $create, $skipSchemaCheck) = @_; my $opts = PVE::SectionConfig::check_config($self, $sectionId, $config, $create, $skipSchemaCheck); return $opts if !$create; - if ($opts->{path} !~ m@^/[-/a-zA-Z0-9_.]+$@) { + if ($opts->{path} !~ m|^/[-/a-zA-Z0-9_.@]+$|) { die "illegal path for directory storage: $opts->{path}\n"; } return $opts;