mount-util: fix error propagation in fd_fdinfo_mnt_id()

This commit is contained in:
Lennart Poettering
2017-11-23 13:28:06 +01:00
parent fc010b01e7
commit 0d9bcb7c37
+1 -1
View File
@@ -132,7 +132,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) {