Commit 8f25dc7
committed
Escape source dataset name when mapping to destination path in znapzendztatz
The substitution that derives the destination dataset path interpolated
$backupSet->{src} into a regex without quotemeta. ZFS dataset names may
contain '.', which then matches any character, so the wrong prefix could be
rewritten and statistics shown for the wrong destination. Wrap the source in
\Q...\E, matching the already-correct form in ZnapZend.pm.1 parent 234d055 commit 8f25dc7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments