From a2092eadcc8bd8c9eabf0b7aac892521845c8c63 Mon Sep 17 00:00:00 2001 From: Umut Tezduyar Lindskog Date: Wed, 17 Dec 2014 19:43:58 -0500 Subject: 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 --- src/shared/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/path-util.c') 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 -- cgit v1.2.3-54-g00ecf