bug#44587: ls prints garbage when listing contents of a directory without exec permissions

2020-11-11 Thread Paul Eggert
On 11/11/20 3:24 PM, Jan Schaumann wrote: $ ls -la dir ls: cannot access dir/.: Permission denied ls: cannot access dir/..: Permission denied ls: cannot access dir/file: Permission denied total 0 d? ? ? ? ?? . d? ? ? ? ?? .. -? ? ? ? ??

bug#44587: ls prints garbage when listing contents of a directory without exec permissions

2020-11-11 Thread Bernhard Voelker
On 11/12/20 12:24 AM, Jan Schaumann wrote: > When running 'ls -l' on a directory that the user does > not have execute permissions on, ls(1) still attempts > to generate the long listing and prints the various > fields with garbage: > > $ mkdir dir > $ touch dir/file > $ chmod a-x dir > $ ls -ld

bug#44587: ls prints garbage when listing contents of a directory without exec permissions

2020-11-11 Thread Jan Schaumann
When running 'ls -l' on a directory that the user does not have execute permissions on, ls(1) still attempts to generate the long listing and prints the various fields with garbage: $ mkdir dir $ touch dir/file $ chmod a-x dir $ ls -ld dir drw-r--r-- 2 jschauma users 28 Nov 11 23:15 dir $ ls -la