AFAICT, the permissions used by fts_read can't be displayed in any documented way, which increases the confusion.
This issue is likely the cause of Problem Report "bin/33235" as well.
>How-To-Repeat:
-bash-2.05b$ sudo mkdir /mnt/TestPoint
-bash-2.05b$ sudo chmod 000 /mnt/TestPoint
-bash-2.05b$ ls -l /mnt
total 2
d--------- 2 root wheel 512 Jun 3 10:01 TestPoint
-bash-2.05b$ sudo mount /dev/ad2s2d /mnt/TestPoint
-bash-2.05b$ ls -l /mnt
total 2
drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint
-bash-2.05b$ ls -lR /mnt
total 2
drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint
/mnt/TestPoint:
total 0
ls: fts_read: Permission denied
-bash-2.05b$ ls -lR /mnt/TestPoint
total 12324160
-rw-r--r-- 1 root wheel 4418652160 May 31 17:54 <file names omitted>
-rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 <file names omitted>
-rw-r--r-- 1 root wheel 3755358680 May 31 19:57 <file names omitted>
-bash-2.05b$ sudo umount /dev/ad2s2d
-bash-2.05b$ sudo chmod 777 /mnt/TestPoint
-bash-2.05b$ ls -l /mnt
total 2
drwxrwxrwx 2 root wheel 512 Jun 3 10:01 TestPoint
-bash-2.05b$ sudo mount /dev/ad2s2d /mnt/TestPoint
-bash-2.05b$ ls -l /mnt
total 2
drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint
-bash-2.05b$ ls -lR /mnt
total 2
drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint
/mnt/TestPoint:
total 12324160
-rw-r--r-- 1 root wheel 4418652160 May 31 17:54 <file names omitted>
-rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 <file names omitted>
-rw-r--r-- 1 root wheel 3755358680 May 31 19:57 <file names omitted>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"