tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: fcntl(F_GETPATH) support
On Sun, Sep 15, 2019 at 09:53:41AM -0700, Jason Thorpe wrote:
> FYI - XNU has O_SYMLINK for this. Not saying we should necessarily add it to NetBSD, just noting the precedent.
>
> -- thorpej
> Sent from my iPhone.
>
> > On Sep 14, 2019, at 5:06 PM, Christos Zoulas <christos%astron.com@localhost> wrote:
> >
> > If you can get a file desriptor to a symlink, it will work; I don't think
> > that we have a way to do this now.
There should be no way to get a fd for a symlink; if you can,
something bad has happened.
Because of the way short symlinks are handled in ffs, I wouldn't be
surprised if managing to get one let you corrupt the fs.
--
A. No
Q. Should I include quotations after my reply?
Home |
Main Index |
Thread Index |
Old Index