<div dir="ltr"><div><div>I implement it by testing whether getuid() is 0<br><br></div><br></div>- Hao<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 13, 2013 at 10:30 AM, Tejas Nadkarni <span dir="ltr"><<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>
<div><br></div><div><div>−A List all entries except for ‘.’ and ‘..’. Always set for the super-user.</div></div><div><br></div><div><br></div></div></div>
<br>_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
<br></blockquote></div><br></div>