]> gitweb.michael.orlitzky.com - apply-default-acl.git/commit
src/libadacl.c: fix handling of "./" and "../" as paths.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 18 Jun 2018 01:48:40 +0000 (21:48 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 18 Jun 2018 01:48:40 +0000 (21:48 -0400)
commit8ec2f2bde7c53834a304bcdc68e84d8c7a748ca4
tree5384b7b93be7ab4a389141a7f24fbb6d51b9d9d8
parent6f5f41a8a87ac60de171e18e6d233f34f61c4454
src/libadacl.c: fix handling of "./" and "../" as paths.

The recent fixes for the paths "." and ".." ignored the other obvious
cases, where those paths have a trailing slash appended. The trailing
slash is now handled by comparing the basename of the path against "."
and ".." rather than the path itself. This allows the test suite,
which now contains tests for "./" and "../", to pass.
src/libadacl.c