On Sat, 25 Mar 2000, Jamie Lokier wrote:

> > This patch, against 2.3.99pre3 (or thereabouts) implements an
> > O_DEFEROPEN option to open(2).
>
> Why don't you just give O_NONE (value: 3) this behaviour?

Partially because I didn't want to break applications already
using this (IMHO, rather dubious) feature.

Mostly, though, because I wanted to leave the O_RDWR/etc.
permission checks in the open() path, to avoid the possibility
of giving out descriptors to otherwise inaccessible files.

Matthew.

Reply via email to