[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: stat(x) & AT_NO_AUTOMOUNT
From:       Samuel Thibault <samuel.thibault () gnu ! org>
Date:       2020-11-28 19:36:14
Message-ID: 20201128193614.ou2yapeiiijupnhf () function
[Download RAW message or body]

Pino Toscano, le sam. 28 nov. 2020 20:09:57 +0100, a ecrit:
> In data sabato 28 novembre 2020 20:02:52 CET, Samuel Thibault ha scritto:
> > Pino Toscano, le sam. 28 nov. 2020 19:45:12 +0100, a ecrit:
> > > Can AT_NO_AUTOMOUNT be (easily) implemented in the hurd lookup bits?
> > 
> > I would say that it simply maps to O_NOTRANS?
> 
> I thought about that; then I saw in libdiskfs/dir-lookup.c &
> libnetfs/dir-lookup.c that O_NOTRANS disables the symlink resolution,
> i.e. the equivalent of O_NOLINK, which means AT_SYMLINK_NOFOLLOW in
> at flags.

That looks like a bug in lib*fs to me actually. I don't see why
O_NOTRANS should imply O_NOLINK, a caller that wants both can specify
both.

Samuel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic