From: Michael Orlitzky Date: Mon, 26 Feb 2018 02:47:25 +0000 (-0500) Subject: Eliminate the is_path_directory() function. X-Git-Tag: v0.1.0~20 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=7e0a431bdbba1757b4fc54289dcfb5f26b59781e;hp=7e0a431bdbba1757b4fc54289dcfb5f26b59781e;p=apply-default-acl.git Eliminate the is_path_directory() function. 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. ---