---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 648e56d..0e58433 100644
--- a/main.c
+++ b/main.c
@@ -57,7 +57,7 @@ int check_tainted(void)
char buffer[4];
fd = open("/proc/sys/kernel/tainted", O_RDONLY);
- if (!fd)
+ if (fd < 0)
return -1;
ret = read(fd, buffer, 3);
close(fd);
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html