[PATCH 4/9] auditsc: test below 0 on unsigned ino
From: roel kluin
Date: Mon Jul 21 2008 - 20:29:56 EST
ino is unsigned so the test didn't work.
Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index c10e7aa..dc8e0a4 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -286,7 +286,7 @@ static int audit_match_filetype(struct audit_context *ctx, int which)
mode_t mode = which & S_IFMT;
if (index >= ctx->name_count)
return 0;
- if (ctx->names[index].ino == -1)
+ if (ctx->names[index].ino == -1ul)
return 0;
if ((ctx->names[index].mode ^ mode) & S_IFMT)
return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/