Messages in this thread Patch in this message | | | Date | Mon, 21 Jul 2008 20:29:16 -0400 | From | roel kluin <> | Subject | [PATCH 4/9] auditsc: test below 0 on unsigned ino |
| |
ino is unsigned so the test didn't work.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- 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;
| |