summaryrefslogtreecommitdiff
path: root/m4/acl.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-02-09 09:06:40 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-02-09 09:07:23 -0800
commitf2e9d1b3847d43206e8b0d05e5b64335d2c0b36f (patch)
treed8a42809212f10a17deb9f0bd53073d2187469cd /m4/acl.m4
parent815439eadc0ac0fb442be9f1269eadbf37471ff6 (diff)
downloademacs-f2e9d1b3847d43206e8b0d05e5b64335d2c0b36f.tar.gz
Sync with gnulib
This incorporates: 2016-02-09 stdalign: port to clang 3.7.0 2016-02-06 misc: port better to gcc -fsanitize=address * doc/misc/texinfo.tex, lib/stdalign.in.h, m4/acl.m4, m4/getgroups.m4: Copy from gnulib.
Diffstat (limited to 'm4/acl.m4')
-rw-r--r--m4/acl.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/m4/acl.m4 b/m4/acl.m4
index 0f963374dcb..ce0fe6bc1ea 100644
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -1,5 +1,5 @@
# acl.m4 - check for access control list (ACL) primitives
-# serial 21
+# serial 22
# Copyright (C) 2002, 2004-2016 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -163,9 +163,8 @@ AC_DEFUN([gl_ACL_GET_FILE],
#include <sys/acl.h>
#include <errno.h>
]],
- [[if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
- return 1;
- return 0;
+ [[acl_t acl = acl_get_file (".", ACL_TYPE_ACCESS);
+ return acl ? acl_free (acl) != 0 : errno == ENOENT;
]])],
[if test $cross_compiling = yes; then
gl_cv_func_working_acl_get_file="guessing yes"