diff --git a/src/home/homed-home.c b/src/home/homed-home.c index da64d1a8b6..664397e55e 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -386,7 +386,7 @@ static void home_pin(Home *h) { return; } - h->pin_fd = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC); + h->pin_fd = open(path, O_PATH|O_DIRECTORY|O_CLOEXEC); if (h->pin_fd < 0) { log_warning_errno(errno, "Couldn't open home directory '%s' for pinning, ignoring: %m", path); return;