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)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Mar 2021 10:39:37 +0000 (11:39 +0100)
commitb898474fecda9e39aa06512ef7ba358c9685d84e
tree8316dd47f6b93c90c357f3f214e7d74d733d342b
parent981318d2b5537352c0d989bb70c64171c82e1adf
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.
src/basic/mountpoint-util.c