]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
Allow apply_default_acl() to take a stat pointer for its path argument.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 02:35:02 +0000 (21:35 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 19:10:29 +0000 (14:10 -0500)
When operating recursively, nftw has already called stat() on the path
that it feeds to apply_default_acl(). Rather than re-stat it, we can
now pass a stat struct pointer in as the second argument to
apply_default_acl(). When not operating recursively, you just pass it
NULL instead, and apply_default_acl() will do the fstat as before.


No differences found