From: Michael Orlitzky Date: Sun, 17 Jun 2018 23:43:21 +0000 (-0400) Subject: src/libadacl.c: add a special case for the path "." as an argument. X-Git-Tag: v0.4.1~9 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=6b639194b7be7aa17e9736d1ed034e798d206de2;hp=6b639194b7be7aa17e9736d1ed034e798d206de2;p=apply-default-acl.git src/libadacl.c: add a special case for the path "." as an argument. 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. ---