summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>2014-12-18 01:43:58 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 03:08:16 +0100
commitb890bf6a81acfc989743ef7a66ba5710aec66411 (patch)
tree289841b6a81eca7c959318be27a0567d35e85377 /src
parentmachinectl: add new commands for copying files from/to containers (diff)
downloadsystemd-b890bf6a81acfc989743ef7a66ba5710aec66411.tar.xz
systemd-b890bf6a81acfc989743ef7a66ba5710aec66411.zip
path: follow symbolic link for parent path (2)
c0e57ba9e22ee937722958d8b912ade2a37f206d fixed the fallback path. We should do the same for name_to_handle_at().
Diffstat (limited to 'src')
-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 9e2fd6434a..fae5d20ebb 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -489,7 +489,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