summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>2014-12-17 19:43:58 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-20 10:21:48 -0500
commita2092eadcc8bd8c9eabf0b7aac892521845c8c63 (patch)
tree5d85acb6a499112d32f093078d77380d9212efd3 /src/shared/path-util.c
parent691bd2810bac9b591f8246ca832415b6c04f58e8 (diff)
path: follow symbolic link for parent path (2)
c0e57ba9e22ee937722958d8b912ade2a37f206d fixed the fallback path. We should do the same for name_to_handle_at(). Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index f64701a48d..be320f50ca 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -350,7 +350,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) {
return r;
h.handle.handle_bytes = MAX_HANDLE_SZ;
- r = name_to_handle_at(AT_FDCWD, parent, &h.handle, &mount_id_parent, 0);
+ r = name_to_handle_at(AT_FDCWD, parent, &h.handle, &mount_id_parent, AT_SYMLINK_FOLLOW);
if (r < 0) {
/* The parent can't do name_to_handle_at() but the
* directory we are interested in can? If so, it must