tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)
On Mon, Aug 01, 2011 at 09:31:11PM +0100, David Laight wrote:
> > + if (flags & FOLLOW)
> > + namei_simple_flags = NSM_FOLLOW_TRYEMULROOT;
> > + else
> > + namei_simple_flags = NSM_NOFOLLOW_TRYEMULROOT;
> > +
> > + error = namei_simple_user(path, namei_simple_flags, &vp);
>
> Not withstanding dh's comment, why not pass in all the namei flags.
>
> > + error = namei_simple_user(path, flags, &vp);
Because I gimmicked up the flags for namei_simple specifically to
disallow that sort of thing :-)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index