Re: [PATCH] open: O_DIRECTORY and O_CREAT together should fail

From: Miklos Szeredi
Date: Sat Sep 24 2005 - 01:42:53 EST


> > Well yes. But I don't think anybody is using it, and if so they are
> > clearly breaking the rules in man open(2):
>
> Be liberal in what you accept and all such... Everything else aside,
> why bother?

To conform to well defined semantics?

It just bathers me, that you can get a non-directory file descriptor
with O_DIRECTORY.

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