X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fapply-default-acl.c;h=a520aa9b6d4ebdc43b5055772292c1efe4b2b822;hb=45d4e8bba034c22c317fbd20c629589e35d97683;hp=bebb27c9907cb43f4bfb43599b483b5c568c189d;hpb=71831f01c40806756b6640591fca739c7790aebe;p=apply-default-acl.git diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index bebb27c..a520aa9 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -74,9 +74,9 @@ void usage(const char* program_name) { } printf("Apply any applicable default ACLs to the given files or " - "directories.\n\n"); + "directories.\n\n"); printf("Usage: %s [flags] [ [ ...]]\n\n", - program_name); + program_name); printf("Flags:\n"); printf(" -h, --help Print this help message\n"); printf(" -r, --recursive Act on any given directories recursively\n"); @@ -98,9 +98,9 @@ void usage(const char* program_name) { * */ int apply_default_acl_nftw(const char *target, - const struct stat *sp, - int info, - struct FTW *ftw) { + const struct stat *sp, + int info, + struct FTW *ftw) { if (target == NULL) { errno = EINVAL; @@ -128,9 +128,9 @@ int apply_default_acl_nftw(const char *target, * */ int apply_default_acl_nftw_x(const char *target, - const struct stat *sp, - int info, - struct FTW *ftw) { + const struct stat *sp, + int info, + struct FTW *ftw) { if (target == NULL) { errno = EINVAL; @@ -257,7 +257,7 @@ int main(int argc, char* argv[]) { * typos, too. */ if (!path_accessible(target)) { - fprintf(stderr, "%s: %s: No such file or directory\n", argv[0], target); + perror(target); result = EXIT_FAILURE; continue; }