lkml.org 
[lkml]   [2008]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;

\
 
 \ /
  Last update: 2008-07-22 02:33    [W:0.036 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site