Fix using lookupkey inside a subdirectory
authorJoey Hess <joeyh@joeyh.name>
Tue, 26 Oct 2021 18:58:44 +0000 (14:58 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 26 Oct 2021 19:00:45 +0000 (15:00 -0400)
commitb2c48fb86bfa3d8e26062f76f7a669ffcf1b2209
tree572239423af0fe83815c3f328961c99018169be9
parent91eb393df4a3ee3b3795590e38179b4e281139ff
Fix using lookupkey inside a subdirectory

Caused by dirContains ".." "foo" being incorrectly False.

Also added a test of dirContains, which includes all the previous bug fixes
I could find and some obvious cases.

Reversion in version 8.20211011

Sponsored-by: Brett Eisenberg on Patreon
CHANGELOG
Test.hs
Utility/Path.hs
Utility/Path/Tests.hs
doc/bugs/lookupkey_does_not_work_from_subdirectory.mdwn