[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Permissions with ACLs





Martin Maciaszek schrieb:
> 
> On Mon, Jun 04, 2001 at 04:54:17PM +0200, Juergen Hasch wrote:
> [...]
> > It works for me, here is a simple example:
> >
> > bash-2.04$ ls -al
> > total 16
> > drwxr-xr-x    2 hasch    users          29 Jun  4 16:52 .
> > drwxr-xr-x   72 hasch    users        8192 Jun  4 16:50 ..
> > -rwxrwx---+   1 hasch    users           0 Jun  4 16:50 test
>             ^
> Where did you get an XFS ACL-aware fileutils?

Get fileutils-4.1.tar from your favourite GNU ftp mirror and the
fileutils-patch from http://acl.bestbits.at

For now, you will also need the following patch in the src directory:

--- permissions.orig    Thu Jun  7 22:49:44 2001
+++ permissions.c       Thu Jun  7 22:48:22 2001
@@ -262,18 +262,20 @@

   if ((acl_text = acl_to_text(acl, NULL)) != NULL)
     {
       char *c = acl_text, entries = 0;
       if (*c != '\0')
         {
-         entries++;
          while (*c != '\0')
            {
-             if (*c++ == ',')
+             if (*c++ == '\n')
                entries++;
            }
        }
       acl_free(acl_text);
       return entries;
     }
   else
     {

...Juergen