]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
Eliminate the is_path_directory() function.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 02:47:25 +0000 (21:47 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 19:10:29 +0000 (14:10 -0500)
The is_path_directory() function was only used in two places:

  1. To avoid involving nftw when the target is a file.
  2. To avoid setting (or trying to) a default ACL on a file.

The first one doesn't really matter, and the correct behavior is
tested, so the additional "is it a directory?" check has been
dropped. In the second case, we still don't want to try to set default
ACLs on files, but now the "is it a directory?" check is done at the
call site, where a stat structure is already available.

With those two uses gone, the function has been removed.


No differences found