]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
src/libadacl.c: add a special case for the path "." as an argument.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 17 Jun 2018 23:43:21 +0000 (19:43 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 18 Jun 2018 00:55:22 +0000 (20:55 -0400)
There's a bug (exposed by the most recent test case) in the way the
path "." is handled. Specifically, the dirname() function miscomputes
its parent path as ".", which is clearly not correct.

In this commit, a special case is added for the path ".", and the test
suite passes once more. The implementation is a bit of a hack, however,
and will be improved once the same issue with ".." has been dealt with.


No differences found