diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-06-09 16:16:56 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-06-09 16:16:56 +0200 |
commit | 36908eb87de06267c8cc824aa9dccb1b428419aa (patch) | |
tree | 1ad90486130d8d1a61025d17c88c1987a6d9ea04 /LICENSE.GPL2 | |
parent | 4f7cd56ef270ec2614f2efc916551b5e3c5acc50 (diff) |
path-util: Fix path_is_mount_point for parent mount points in symlink mode
When we have a structure like this:
/bin -> /usr/bin
/usr is a mount point
Then path_is_mount_point("/bin", AT_SYMLINK_FOLLOW) needs to look at the pair
/usr/bin and /usr, not at the pair / and /usr/bin, as the latter have different
mount IDs. But we only want to consider the base name, not any parent.
Thus we have to resolve the given path first to get the real parent when
allowing symlinks.
Bug: https://github.com/systemd/systemd/issues/61
Diffstat (limited to 'LICENSE.GPL2')
0 files changed, 0 insertions, 0 deletions