chiark / gitweb /
path-util: fix path_is_mount_point() for symlinks
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Feb 2015 12:25:42 +0000 (13:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Mar 2015 16:46:20 +0000 (17:46 +0100)
commit27cc6f166bdebc0e698fb692993b801db2618866
treecff65e348f319d89b581414f433c3f605ac6ffc2
parent918315e457ca36cab94ff3b6060e143968c99ace
path-util: fix path_is_mount_point() for symlinks

path_is_mount_point() compares the mount_id of a directory and the
mount_id of the parent directory. When following symlinks, the function
to get the parent directory does not take the symlink into account.

/bin -> /usr/bin with /usr being a mountpoint:
mount_id of /bin with AT_SYMLINK_FOLLOW != mount_id of /
src/shared/path-util.c