Description of problem:
ksh not giving error on "cd" to directory without execute bit.
It does not return an error if we "cd" to a directory without execute bit.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a directory.
2. Run "chmod 660" to the directory.
3. When running "cd" to the directory, it does not return error "permission denied". "pwd" shows the path to the directory. But "ls" shows the contents of the previous path.
$ mkdir dir01
$ chmod 660 dir01
$ cd dir01
dir01 file01 file02
drw-rw----. 2 user001 user001 4096 May 29 19:44 dir01
-rw-rw-r--. 1 user001 user001 0 May 29 19:43 file01
-rw-rw-r--. 1 user001 user001 0 May 29 19:43 file02
It does not return error "permission denied". "pwd" shows the path to the directory. But "ls" shows the contents of the previous path.
Error "permission Denied" should be returned against "cd" to a directory of which permission 660.
Created attachment 909162 [details]
patch to fix this
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.