From: Dave Reisner Date: Sun, 12 Oct 2014 00:35:06 +0000 (-0400) Subject: tmpfiles: compare return against correct errno X-Git-Tag: v217~235 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e7aab5412829ed6b50d109f670bd0b1b365838a7;p=elogind.git tmpfiles: compare return against correct errno name_to_handle_at returns -EOPNOTSUPP, not -ENOTSUP. --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index dafb9aee2..8108b4304 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -259,7 +259,7 @@ static int dir_is_mount_point(DIR *d, const char *subdir) { /* got only one handle; assume different mount points if one * of both queries was not supported by the filesystem */ - if (r_p == -ENOSYS || r_p == -ENOTSUP || r == -ENOSYS || r == -ENOTSUP) + if (r_p == -ENOSYS || r_p == -EOPNOTSUPP || r == -ENOSYS || r == -EOPNOTSUPP) return true; /* return error */