X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Flibadacl.h;h=c70487ac2a57c84031f307aee5325eaea85478ab;hb=d9b820de67813a5e2b92e4249e5a25cf8d884720;hp=a846c88a3b87da170bb739d3ebead4f72aed609a;hpb=81233b65dc8bbccba15394751f240ad59f15f342;p=apply-default-acl.git diff --git a/src/libadacl.h b/src/libadacl.h index a846c88..c70487a 100644 --- a/src/libadacl.h +++ b/src/libadacl.h @@ -6,20 +6,12 @@ */ /* Most of the libacl functions return 1 for success, 0 for failure, - and -1 on error */ + * and -1 on error. We follow suit. +*/ #define ACL_ERROR -1 #define ACL_FAILURE 0 #define ACL_SUCCESS 1 -/* Even though most other library functions reliably return -1 for - * error, it feels a little wrong to re-use the ACL_ERROR constant. - */ -#define CLOSE_ERROR -1 -#define NFTW_ERROR -1 -#define OPEN_ERROR -1 -#define SNPRINTF_ERROR -1 -#define STAT_ERROR -1 - int apply_default_acl_ex(const char* path, const struct stat* sp, bool no_exec_mask);