View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008889 | GNUnet | other | public | 2024-06-03 12:49 | 2024-06-03 13:48 |
Reporter | ch3 | Assigned To | ch3 | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | Git master | ||||
Summary | 0008889: DISK_glob() not matching * at end | ||||
Description | GNUNET_DISK_glob() (in file src/lib/util/disk.c) does falsly not match files when the * is the last character in the pattern. Unfortunately it's quite some while since I discovered it and I'm not 100% sure about the details. I had a pattern 'test*' and wanted it to match 'test0', 'test1', ... but it matched none of those. (If it matched 'test' I cannot remember.) It works well for files 'test1.ext', 'test2.ext', ... with the pattern 'test*.ext'. | ||||
Steps To Reproduce | Create a file 'test0', ('test1', 'test2', ...) and call GNUNET_DISK_glob() with 'test*'. It should match but does not. | ||||
Additional Information | I tried to debug the problem and came to the assumption that 'return false' should be 'return true' in glob_match() disk.c:949. I did intend to provide a unit test, but was unsure whether gnunet uses these and if yes, how. | ||||
Tags | No tags attached. | ||||