ls command, '+' for ACLs

Andreas Gruenbacher a.gruenbacher at infosys.tuwien.ac.at
Fri Oct 15 23:22:33 GMT 1999


Casey Schaufler wrote:
> 
> Andreas Gruenbacher wrote:
> 
> > If a file's link count exceeds 999, what is the preferred was to display that:
> >
> > -rw-r--r--+ 999 root     root            0 Oct 16 00:06 y
> > -rw-r--r--+999 root     root            0 Oct 16 00:06 z
> 
> I assume you really mean:
> 
> -rw-r--r--+ 9999 root     root            0 Oct 16 00:06 y
> -rw-r--r--+9999 root     root            0 Oct 16 00:06 z

No, I don't. On all systems that I have looked at (Solaris, HPUX, Linux),
there is a space after the file mode, then room for three digits, like my
output above.

Is it different on IRIX?
Is the standard different?

> 
> The latter. Interestingly, if there's no ACL it should be
> 
> -rw-r--r-- 9999 root     root            0 Oct 16 00:06 w
> -rw-r--r-- 11111 root     root            0 Oct 16 00:06 lotsolinks
> 
> The 11th character is a blank if there's no ACL,
> a plus if there is one.

That's not particularly what most scripts will assume  :-(


Btw, why are the ACL library functions specified with _such_ strange
function parameter types? I tried to adapt the definitions in the
standard using `const' wherever appropriate, but that didn't work
at all...


Thank you.

Andreas

------------------------------------------------------------------------
 Andreas Gruenbacher, Vienna University of Technology
 a.gruenbacher at infosys.tuwien.ac.at
 Contact information: http://www.infosys.tuwien.ac.at/~agruenba
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message



More information about the posix1e mailing list