[systemd-devel] [PATCH 1/2] path-util: fix fd_is_mount_point

Shawn Landden shawn at churchofgit.com
Sun Apr 26 10:58:48 PDT 2015


(coverity)
---
 src/shared/path-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 925bb28..95bfafc 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -627,7 +627,7 @@ fallback_fstat:
             a.st_ino == b.st_ino)
                 return 1;
 
-        return check_st_dev && (a.st_dev != b.st_dev);
+        return (check_st_dev && (a.st_dev != b.st_dev));
 }
 
 int path_is_mount_point(const char *t, bool allow_symlink) {
-- 
2.2.1.209.g41e5f3a



More information about the systemd-devel mailing list