[cs631apue] Question about -a option
Shicong Huang
shuang14 at stevens.edu
Fri Oct 16 01:21:19 EDT 2015
Hi,
I met a question when I tried to implement -a option. In the instruction,
-a shall include directory
entries whose names begin with a dot. If I am not wrong, I still need to
ignore file entries whose
names begin with a dot. So, consider this case:
ls -a /foo/bar/
foo's access permission: drwxrwxrwx
bar's access permission: drw-rw-rw-
Since I have "r" permission of bar, I can read all sub entries of it. But I
don't have any
"x" permission of bar, that means I can't stat(2) its sub entries. So, how
do I know a sub
entry is a directory?
Thanks!
Shicong Huang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20151016/5f298ee6/attachment.html>
More information about the cs631apue
mailing list