Index: trunk/configure.ac
===================================================================
--- trunk/configure.ac	(revision 267)
+++ trunk/configure.ac	(revision 268)
@@ -12,5 +12,5 @@
 dnl start
 dnl
-AM_INIT_AUTOMAKE(samhain, 2.6.1)
+AM_INIT_AUTOMAKE(samhain, 2.6.1a)
 AC_DEFINE([SAMHAIN], 1, [Application is samhain])
 AC_CANONICAL_HOST
Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 267)
+++ trunk/docs/Changelog	(revision 268)
@@ -1,2 +1,6 @@
+2.6.1a (22-12-2009):
+	* fix typo in code for older inotify versions without
+	  inotify_init1(), reported by Forll
+
 2.6.1 (21-12-2009):
 	* add a routine to log monitoring module to guess the proper year 
Index: trunk/src/sh_inotify.c
===================================================================
--- trunk/src/sh_inotify.c	(revision 267)
+++ trunk/src/sh_inotify.c	(revision 268)
@@ -147,6 +147,6 @@
 	  long sflags;
 
-	  sflags = retry_fcntl(FIL__, __LINE__, fd, F_GETFD, 0);
-	  retry_fcntl(FIL__, __LINE__, fd, F_SETFD, sflags|FD_CLOEXEC);
+	  sflags = retry_fcntl(FIL__, __LINE__, ifd, F_GETFD, 0);
+	  retry_fcntl(FIL__, __LINE__, ifd, F_SETFD, sflags|FD_CLOEXEC);
 	}
 #endif
