Signed-off-by: Ralph Boehme <rb@sernet.de>
static const char **skip_files;
static struct fce_close_event last_close_event;
static const char **skip_files;
static struct fce_close_event last_close_event;
-static char *fce_event_names[] = {
+/*
+ * This only initializes consecutive events beginning at 1, high
+ * numbered events must be initialized in the code
+ */
+static char *fce_event_names[FCE_LAST_EVENT + 1] = {
"",
"FCE_FILE_MODIFY",
"FCE_FILE_DELETE",
"",
"FCE_FILE_MODIFY",
"FCE_FILE_DELETE",
if (first_event == true) {
first_event = false;
if (first_event == true) {
first_event = false;
+ fce_event_names[FCE_CONN_START] = "FCE_CONN_START";
+ fce_event_names[FCE_CONN_BROKEN] = "FCE_CONN_BROKEN";
+
struct passwd *pwd = getpwuid(obj->uid);
user = strdup(pwd->pw_name);
struct passwd *pwd = getpwuid(obj->uid);
user = strdup(pwd->pw_name);
#define FCE_CONN_BROKEN 99
#define FCE_FIRST_EVENT FCE_FILE_MODIFY /* keep in sync with last file event above */
#define FCE_CONN_BROKEN 99
#define FCE_FIRST_EVENT FCE_FILE_MODIFY /* keep in sync with last file event above */
-#define FCE_LAST_EVENT FCE_DIR_CREATE /* keep in sync with last file event above */
+#define FCE_LAST_EVENT FCE_LOGOUT /* keep in sync with last file event above */
/* fce_packet.fce_magic */
#define FCE_PACKET_MAGIC "at_fcapi"
/* fce_packet.fce_magic */
#define FCE_PACKET_MAGIC "at_fcapi"