]> Savannah Git Hosting - gnulib.git/commit
acl: fix definition of acl_from_mode on FreeBSD
authorPádraig Brady <P@draigBrady.com>
Tue, 30 Jun 2015 19:35:26 +0000 (20:35 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 30 Jun 2015 23:50:07 +0000 (00:50 +0100)
commit716083c1a8ea4580e09d35f96b67f8bd875c0fe3
tree4b7212b70c64281dee1f517509b6b344074da662
parent259e4fc29d76f4ad2128fa00caa8f9b0b56736d4
acl: fix definition of acl_from_mode on FreeBSD

This was causing basic coreutils copy operations to fail
with ENOTSUP or ENOENT error messages.

* lib/acl-internal.h (acl_from_mode): Only define when
! defined HAVE_ACL_FROM_TEXT.  That allows the version
of acl_from_mode() defined in lib/set-permissions.c to
be used on FreeBSD at least.
* lib/set-permissions.c: Fix up comment spelling,
and a redundant variable assignment; noticed in passing.
ChangeLog
lib/acl-internal.h
lib/set-permissions.c