Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5848 closed bug (invalid)

Directories without read and execute permissions are incorrectly handled

Reported by: mjw Owned by: nobody
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I am porting quilt to haiku, and I have come across the following problem. If you execute the following 3 lines in a bash prompt: mkdir directory chmod a-rx directory cd directory

then "cd directory" succeeds. I believe it should fail with a permission errror.

Change History (2)

comment:1 Changed 9 years ago by anevilyak

Resolution: invalid
Status: newclosed

This is expected behavior, for the simple reason that, Haiku being single-user, you are always root and thus always have permission. Execute the above commands as root on linux or FreeBSD and you'll see the exact same result.

comment:2 Changed 9 years ago by axeld

Component: - GeneralSystem/Kernel

Alternatively, you can create another non-root user in Haiku (using the "useradd" command), log in as that user, and it should return the expected results.

Note: See TracTickets for help on using tickets.