> > Aha - so Hans want open() to work on directories only when app does
> > open("/etc", O_OPEN_DIRECTORY_AS_FILE)
> >
> > ? That will not break anything, but I doubt it is better than
> > open("/etc#opendirasfile", O_RDONLY)
>
> How about open("/etc/", O_RDWR)?
>
> With the user library translating that to open("/etc/..body", O_RDWR)
You lose the ability to have these things read only in that case.
Not ideal...
Matthew.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/