[mc] SYMLINK_NOFOLLOW

Yury V. Zaytsev yury at shurup.com
Thu Feb 5 06:56:26 UTC 2026


> On Feb 5, 2026, at 05:41, mi via mc <mc at lists.midnight-commander.org> wrote:
> 
> When i enter a folder which is a symlink, like for example ~/test --> ~ /tmp/test then the strace of mc is full of things like this:
> 
> newfstatat(AT_FDCWD, "/tmp/test/subfolder", {st_mode=S_IFDIR|0700, st_size=40, ...}, AT_SYMLINK_NOFOLLOW) = 0
> 
> What does that NOFOLLOW mean, where is it coming from ?

It’s getting the information about the symlink proper and not the file that it's pointing to.

https://linux.die.net/man/2/fstatat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20260205/17ca3cd4/attachment.htm>


More information about the mc mailing list