mountpoint-util: a symlink is never a mount point
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Mar 2021 21:26:06 +0000 (22:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 May 2021 09:56:48 +0000 (11:56 +0200)
commit41b24382e7849758e456eef50bbf740a1f097c6e
tree1e6c203e816a17df8a2d90a2b35b286c688d5528
parent491107a044bdfeb5877c413d0f5421bb7afde158
mountpoint-util: a symlink is never a mount point

The various flavours of stat() basically tell us for free if something
is a symlink. If it is, then it's definitely not a mount point. Use
that.

All other inode types can be mount point, just symlinks cannot.

(cherry picked from commit b898474fecda9e39aa06512ef7ba358c9685d84e)
src/basic/mountpoint-util.c