Re: bug#20979: ../lib/set-permissions.c:288:27: error: 'mode' undeclared

2015-07-05 Thread Andreas Grünbacher
David, 2015-07-05 0:40 GMT+02:00 John David Anglin : > In this function, "mode" needs to be "ctx->mode" and "entries" needs to be > "ctx->aclv_entries". > It then compiles okay. thanks, I've fixed this in gnulib. Still needs to be pulled into coreutils. Andreas

Re: bug#20979: ../lib/set-permissions.c:288:27: error: 'mode' undeclared

2015-07-05 Thread John David Anglin
We know have: CC lib/set-permissions.o ../lib/set-permissions.c: In function 'context_aclv_from_mode': ../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this function) ctx->aclv_entries[0].a_perm = (mode >> 6) & 7; ^ ../lib/set-pe

Re: bug#20979: ../lib/set-permissions.c:288:27: error: 'mode' undeclared

2015-07-05 Thread John David Anglin
In this function, "mode" needs to be "ctx->mode" and "entries" needs to be "ctx->aclv_entries". It then compiles okay. Dave On 2015-07-04, at 6:29 PM, John David Anglin wrote: > We know have: > > CC lib/set-permissions.o > ../lib/set-permissions.c: In function 'context_aclv_from_mode':

[PATCH 1/2] acl-permissions: Fix on FreeBSD

2015-07-05 Thread Andreas Gruenbacher
When a directory doesn't have an ACL_TYPE_DEFAULT acl, acl_get_file will return an empty acl, but when trying to set that acl, FreeBSD's acl_set_file will fail with errno == EINVAL. Instead, FreeBSD expects acl_delete_def_file to be used. * lib/acl-internal.c (acl_default_nontrivial): Recognize em

Re: RFC acl port to FreeBSD (and maybe solaris)

2015-07-05 Thread Andreas Grünbacher
2015-06-30 14:32 GMT+02:00 Pádraig Brady : > FreeBSD 9.1 > mkdir x > src/cp -a x x.cp > lchown(0x28417050,0x148d2,0x0,0x8056750,0x,0x28417050) = 0 (0x0) > __acl_get_file(0xbfbfed96,0x2,0x28418000,0xbfbfe5f0,0x41ed,0x1) ERR#45 > 'Operation not supported' > madvise(0x28418000,0x1000,

[PATCH 2/2] acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls

2015-07-05 Thread Andreas Gruenbacher
* lib/set-permissions.c (set_acls): Document where support for FreeBSD ACL_TYPE_NFS4 acls should go. * lib/get-permissions.c (get_permissions): Likewise. --- lib/get-permissions.c | 6 ++ lib/set-permissions.c | 9 + 2 files changed, 15 insertions(+) diff --git a/lib/get-permissions.c

Re: RFC acl port to FreeBSD (and maybe solaris)

2015-07-05 Thread Pádraig Brady
On 05/07/15 21:55, Andreas Grünbacher wrote: > 2015-06-30 14:32 GMT+02:00 Pádraig Brady : >> FreeBSD 9.1 >> mkdir x >> src/cp -a x x.cp >> lchown(0x28417050,0x148d2,0x0,0x8056750,0x,0x28417050) = 0 (0x0) >> __acl_get_file(0xbfbfed96,0x2,0x28418000,0xbfbfe5f0,0x41ed,0x1) ERR#45 >> 'Op

Proper way to get base with autoconf?

2015-07-05 Thread Marcin Cieslak
[X-posted, replies set to po...@freebsd.org] Hello, I have managed to upstream few things needed to make mono work on FreeBSD without local patches. Now I am stuck with the iconv detection code. Mono (or it's dumbled-down glib called eglib) need libiconv for two things - charset conversion: h