]> gitweb.michael.orlitzky.com - apply-default-acl.git/commit
Inline the is_hardlink_safe() and is_regular_file() functions.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 01:03:44 +0000 (20:03 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 19:10:28 +0000 (14:10 -0500)
commitaeedc5826cb0594318031e35acaf8b4a1b6e7c32
tree414e6d5149e70c28c76b699af4febd7b512f0d62
parentc95b2420e80bf52789c2651114456a91dac97880
Inline the is_hardlink_safe() and is_regular_file() functions.

These two functions were only called in one place, and they were
called right after one another. Both functions merely peek the stat
structure for a file descriptor, so it's easier to stat the thing once
and then just inline the two checks rather than setup/teardown
everything twice.
src/apply-default-acl.c