[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dazuko-devel] Unknown event error when RMDIR is enabled
From: |
Roberto Gordo Saez |
Subject: |
[Dazuko-devel] Unknown event error when RMDIR is enabled |
Date: |
Wed, 14 Dec 2005 10:51:01 +0100 |
User-agent: |
Mutt/1.5.11 |
This message was sent to this list yesterday, but bounced (because was
not suscribed to this list, i think). I send it again with more
information.
I've compiled Dazuko 2.1.0 and 2.1.1-pre3 with support for ON_RMDIR
events (--enable-event-rmdir) using a Linux 2.4 kernel. When using
the "example_c" executable I get no RMDIR events; instead this message
is printed by the kernel:
dazuko: unknown event:32, allowing access (possible bug)
This message comes from file dazuko_core.c:
i = dazuko_event2index(event);
if (i < 0 || i >= NUM_SLOT_LISTS)
{
call_xp_print("dazuko: unknown event:%d, allowing access (possible bug)\n",
event);
return 0;
}
Condition "i >= NUM_SLOT_LISTS" is true. Function dazuko_event2index
returns 5, which is equal to NUM_SLOT_LISTS macro.
Looking at the code it seems that it is a bug and it should be:
--- dazuko-2.1.0.orig/dazuko_core.c 2005-09-01 20:26:57.000000000 +0200
+++ dazuko-2.1.0/dazuko_core.c 2005-12-14 10:45:34.000000000 +0100
@@ -1882,7 +1882,7 @@
int error;
i = dazuko_event2index(event);
- if (i < 0 || i >= NUM_SLOT_LISTS)
+ if (i < 0 || i >= NUM_EVENTS)
{
call_xp_print("dazuko: unknown event:%d, allowing access
(possible bug)\n", event);
return 0;
- [Dazuko-devel] Unknown event error when RMDIR is enabled,
Roberto Gordo Saez <=