X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fapply-default-acl.c;h=e5b989ad9a585fe6224f16da93e969b34d07358c;hb=a662358647653b8d7f4f2dbfc5ca2802f38c60c8;hp=c075059b3f693e44f213dc79d688fb7a74ab172e;hpb=7ce092ba47607098bb57695396357b8eab90e81b;p=apply-default-acl.git diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index c075059..e5b989a 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -9,14 +9,13 @@ #define _XOPEN_SOURCE 500 #define _GNU_SOURCE -#include -#include /* AT_FOO constants */ -#include /* nftw() et al. */ -#include -#include -#include -#include -#include +#include /* AT_FOO constants */ +#include /* nftw() et al. */ +#include /* getopt_long() */ +#include /* the "bool" type */ +#include /* perror() */ +#include /* EXIT_FAILURE, EXIT_SUCCESS */ +#include /* faccessat() */ #include "libadacl.h" @@ -92,7 +91,7 @@ int apply_default_acl_nftw(const char *target, int info, struct FTW *ftw) { - if (apply_default_acl(target, sp, false)) { + if (apply_default_acl_ex(target, sp, false)) { return FTW_CONTINUE; } else { @@ -114,7 +113,7 @@ int apply_default_acl_nftw_x(const char *target, int info, struct FTW *ftw) { - if (apply_default_acl(target, sp, true)) { + if (apply_default_acl_ex(target, sp, true)) { return FTW_CONTINUE; } else { @@ -248,7 +247,7 @@ int main(int argc, char* argv[]) { } else { /* It's either a normal file, or we're not operating recursively. */ - reapp_result = apply_default_acl(target, NULL, no_exec_mask); + reapp_result = apply_default_acl(target, no_exec_mask); } if (!reapp_result) {