From: Michael Orlitzky Date: Tue, 27 Sep 2016 19:23:33 +0000 (-0400) Subject: Print an error if any targets do not exist. X-Git-Tag: v0.0.5~2 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a605ae954b9b9c378d6a0b21058f4b4b410f8ab7;hp=a605ae954b9b9c378d6a0b21058f4b4b410f8ab7;p=apply-default-acl.git Print an error if any targets do not exist. This commit fixes the last known bug, that apply-default-acl can be called on a file that does not exist and no error is output. A new function, path_accessible(), was added and it uses the faccessat() POSIX call to check whether or not the current effective user/group can access a path. We then call the new path_accessible() on every target given on the command line. If any do not exist, an error is printed: $ ./apply-default-acl derp ./apply-default-acl: derp: no such file or directory Along with this change comes a version bump to v0.0.5 in configure.ac. Some minor reorganization was done in configure.ac as well. ---