#13573 closed bug (fixed)

The command ":> /" does not fail regardless of the shell

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


This seems to be a kernel bug.

Expected is that trying to open a directory for writing always fails.

Change History (4)

comment:1 Changed 22 months ago by axeld

rootfs just seems to be very nice to everyone (http://cgit.haiku-os.org/haiku/tree/src/system/kernel/fs/rootfs.cpp#n586).

Is this actually a problem for anything, or just something you accidentally stumbled upon?

comment:2 Changed 22 months ago by axeld

Component: - GeneralSystem/Kernel
Keywords: rootfs added

comment:3 Changed 22 months ago by schily

It prevents the Bourne Shell to pass it's compliance test.

POSIX requires builtin commands to fail in case of a failing I/O redirection without exiting the shell.

Since POSIX does not permit directories to be opened for writing, >/ is used to run the test.

comment:4 Changed 21 months ago by axeld

Resolution: fixed
Status: newclosed

Fixed in hrev51294, thanks for the report!

Note: See TracTickets for help on using tickets.