[cs631apue] -A flag always set for super user?

hao wu hwu9 at stevens.edu
Sun Oct 13 14:40:48 EDT 2013


I implement it by testing  whether getuid() is 0


- Hao


On Sun, Oct 13, 2013 at 10:30 AM, Tejas Nadkarni <tnadkarn at stevens.edu>wrote:

> How do we implement this from the man page? It says it is always set for
> the super-user but is that something we need to detect or do we enable it
> by default? The system ls doesn't enable this by default. Also running the
> system ls with sudo doesn't change it either.
>
> -A List all entries except for '.' and '..'. Always set for the super-user.
>
>
>
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131013/e909eacc/attachment-0001.html>


More information about the cs631apue mailing list