bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stat(x) & AT_NO_AUTOMOUNT


From: Samuel Thibault
Subject: Re: stat(x) & AT_NO_AUTOMOUNT
Date: Sat, 28 Nov 2020 20:36:14 +0100
User-agent: NeoMutt/20170609 (1.8.3)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]