allow extra identifier to contain all characters for snapshots names which are allowed by zfs

This commit is contained in:
Christoph Klaffl 2018-07-07 20:06:17 +02:00
parent b32d5a6833
commit dc0afebb30
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ my $sshoptions = join " ", map { "-o " . $_ } @{$args{'sshoption'}}; # deref req
my $identifier = "";
if (length $args{'identifier'}) {
if ($args{'identifier'} !~ /^[a-zA-Z0-9-]+$/) {
if ($args{'identifier'} !~ /^[a-zA-Z0-9-_:.]+$/) {
# invalid extra identifier
print("CRITICAL: extra identifier contains invalid chars!\n");
pod2usage(2);