From 89a5385fb7d8a1e6fdd59d8469dd14f14496cad5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Jul 2020 17:43:10 +0200 Subject: [PATCH] mountpoint-util: fix error handling --- src/basic/mountpoint-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index d4a621c7ae8..df1f0ac34cd 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -272,7 +272,7 @@ int path_is_mount_point(const char *t, const char *root, int flags) { fd = open_parent(t, O_PATH|O_CLOEXEC, 0); if (fd < 0) - return -errno; + return fd; return fd_is_mount_point(fd, last_path_component(t), flags); } -- 2.47.3