]> code.delx.au - gnu-emacs/blobdiff - lib/acl-internal.c
Merge emacs-25 into master (using imerge)
[gnu-emacs] / lib / acl-internal.c
index 1a2f8c44bf71dec09a1de90e4f5cf9172baafb26..c1b70176ac0505f3d459d3837cdb23458bf69560 100644 (file)
@@ -1,4 +1,4 @@
-/* Test whether a file has a nontrivial access control list.
+/* Test whether a file has a nontrivial ACL.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
@@ -115,6 +115,13 @@ acl_access_nontrivial (acl_t acl)
 #  endif
 }
 
+int
+acl_default_nontrivial (acl_t acl)
+{
+  /* acl is non-trivial if it is non-empty.  */
+  return (acl_entries (acl) > 0);
+}
+
 # endif
 
 #elif USE_ACL && HAVE_FACL && defined GETACL /* Solaris, Cygwin, not HP-UX */