From f36d47631f9f293c0767c0ee33fbf2ee09675995 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 8 Oct 2007 07:38:17 +0200 Subject: [PATCH] Add constants for the acl_check function --- acl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/acl.c b/acl.c index d59f820..b839410 100644 --- a/acl.c +++ b/acl.c @@ -1403,6 +1403,12 @@ void initposix1e(void) { PyModule_AddIntConstant(m, "TEXT_SOME_EFFECTIVE", TEXT_SOME_EFFECTIVE); PyModule_AddIntConstant(m, "TEXT_ALL_EFFECTIVE", TEXT_ALL_EFFECTIVE); PyModule_AddIntConstant(m, "TEXT_SMART_INDENT", TEXT_SMART_INDENT); + + /* Linux libacl specific acl_check constants */ + PyModule_AddIntConstant(m, "ACL_MULTI_ERROR", ACL_MULTI_ERROR); + PyModule_AddIntConstant(m, "ACL_DUPLICATE_ERROR", ACL_DUPLICATE_ERROR); + PyModule_AddIntConstant(m, "ACL_MISS_ERROR", ACL_MISS_ERROR); + PyModule_AddIntConstant(m, "ACL_ENTRY_ERROR", ACL_ENTRY_ERROR); #endif } -- 2.39.5