|
Zbigniew Jędrzejewski-Szmek |
db38be |
From e7aab5412829ed6b50d109f670bd0b1b365838a7 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
From: Dave Reisner <dreisner@archlinux.org>
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
Date: Sat, 11 Oct 2014 20:35:06 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
Subject: [PATCH] tmpfiles: compare return against correct errno
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
name_to_handle_at returns -EOPNOTSUPP, not -ENOTSUP.
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
---
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
src/tmpfiles/tmpfiles.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
index dafb9aee2f..8108b43042 100644
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
--- a/src/tmpfiles/tmpfiles.c
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
+++ b/src/tmpfiles/tmpfiles.c
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
@@ -259,7 +259,7 @@ static int dir_is_mount_point(DIR *d, const char *subdir) {
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
/* got only one handle; assume different mount points if one
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
* of both queries was not supported by the filesystem */
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
- if (r_p == -ENOSYS || r_p == -ENOTSUP || r == -ENOSYS || r == -ENOTSUP)
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
+ if (r_p == -ENOSYS || r_p == -EOPNOTSUPP || r == -ENOSYS || r == -EOPNOTSUPP)
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
return true;
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
|
|
Zbigniew Jędrzejewski-Szmek |
db38be |
/* return error */
|