View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001262 | bareos-core | General | public | 2020-07-10 17:34 | 2023-09-13 18:47 |
Reporter | amelentjev | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0001262: IgnoreCase with not-ascii paths breaks RegexFile | ||||
Description | In Fileset resource description RegexFile does not match files if IgnoreCase = yes and their paths contains non-ascii symbols (bug found on cyrillic charset) Example : FileSet { Name = "_TS" Include { Options { Exclude = yes IgnoreCase = Yes RegexFile = "D:/Почта/.*\.msf$" } File = "D:/Почта" } } Files with *,msf extension does not exclude from backup. If IgnoreCase=yes removed everything is working as intended. Also if path and RegexFile contain only ASCII characters, for example D:/temp , it also works. | ||||
Steps To Reproduce | configure such Fileset, for example: FileSet { Name = "_TS" Include { Options { Exclude = yes IgnoreCase = Yes RegexFile = "D:/Почта/.*\.msf$" } File = "D:/Почта" } } files with msf extension doesn't exclude from backup | ||||
Tags | No tags attached. | ||||
The RegexFile is using the fnmatch C function. https://pubs.opengroup.org/onlinepubs/000095399/functions/fnmatch.html As Windows NTFS is already a Case ignorant, it is probable that adding a second IgnoreCase = yes make the reverse of expected. Would you mind to check (with recent code 22.1.0 at least) if this is also the case on a pure *nix filesystem. Thanks |
|
Don't use IgnoreCase on FS that already do that. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-10 17:34 | amelentjev | New Issue | |
2023-09-05 16:45 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2023-09-05 16:45 | bruno-at-bareos | Status | new => feedback |
2023-09-05 16:45 | bruno-at-bareos | Note Added: 0005382 | |
2023-09-13 18:47 | bruno-at-bareos | Status | feedback => closed |
2023-09-13 18:47 | bruno-at-bareos | Resolution | open => no change required |
2023-09-13 18:47 | bruno-at-bareos | Note Added: 0005440 |