diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-23 12:44:17 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-11-23 12:44:17 +0100 |
commit | 9e2e72ada02147f4ca46b51c998507efb1652e6b (patch) | |
tree | 71d684b10cc66df1edb79e09b45436f6b58319b6 /src/basic/mount-util.c | |
parent | 3f260078c2c1abae977504293d9fc9ac55f84efe (diff) |
mount-util: fix error propagation in fd_fdinfo_mnt_id()
Diffstat (limited to 'src/basic/mount-util.c')
-rw-r--r-- | src/basic/mount-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index 640d3649b..890bc41af 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -60,7 +60,7 @@ static int fd_fdinfo_mnt_id(int fd, const char *filename, int flags, int *mnt_id if (r == -ENOENT) /* The fdinfo directory is a relatively new addition */ return -EOPNOTSUPP; if (r < 0) - return -errno; + return r; p = startswith(fdinfo, "mnt_id:"); if (!p) { |