Re: Why side-effects on open(2) are evil. (was Re: [RFD

Ben LaHaise (bcrl@redhat.com)
Sun, 27 May 2001 16:40:18 -0400 (EDT)


On Sun, 27 May 2001, Edgar Toernig wrote:

> You really mean that "magicdev" is a directory and:
>
> open("magicdev/.", O_RDONLY);

At least for the patch I posted, that would return -ENOTDIR, and exactly
for the reason that not doing so would break find. I've been convinced
that we really need to be careful which, if any, options are permitted in
this fashion.

-ben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/