Re: copy_acl on IRIX

2007-10-22 Thread Paul Eggert
Paul Eggert <[EMAIL PROTECTED]> writes: > Jim Meyering <[EMAIL PROTECTED]> writes: > >> However, a long-term (forward-looking :-) solution should >> also take into consideration the state of NFSv4 and ZFS. > > Yes, I'll see if I can pry free some time to look into that. Here's a proposed patch to

Re: copy_acl on IRIX

2007-10-22 Thread Bruno Haible
Hello Paul, > - if (n == 3) > + /* On most hosts an ACL is trivial if n == 3, and it cannot be > + less than 3. On IRIX 6.5 it is also trivial if n == -1. > + For simplicity and safety, assume the ACL is trivial if n <= 3. > + Also see file_has_acl.c for som

Re: copy_acl on IRIX

2007-10-22 Thread Paul Eggert
Jim Meyering <[EMAIL PROTECTED]> writes: > However, a long-term (forward-looking :-) solution should > also take into consideration the state of NFSv4 and ZFS. Yes, I'll see if I can pry free some time to look into that. > Either is fine with me and will work for that system, > and you're welcom

Re: copy_acl on IRIX

2007-10-22 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Bruno Haible <[EMAIL PROTECTED]> writes: > >> - if (n == 3) >> + /* If the ACL is trivial, there is no point in complaining that >> + we cannot set it on DEST. >> + An ACL is trivial if it has only the user/group/other entries, >> +

Re: copy_acl on IRIX

2007-10-21 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > - if (n == 3) > + /* If the ACL is trivial, there is no point in complaining that > + we cannot set it on DEST. > + An ACL is trivial if it has only the user/group/other entries, > + or (on IRIX 6.5) if acl_entries (

copy_acl on IRIX

2007-10-21 Thread Bruno Haible
Hi Paul and Jim, Since the ACL module is not advertised as unstable, I started to make use of it in the copy-file module: The copy_file_preserving function calls copy_acl in order to copy ACLs from the original to the destination file. And copy_file_preserving, in turn, is used by "msgmerge --upda