--- usertable.cpp.ori	2009-06-12 10:52:37.000000000 +0200
+++ usertable.cpp	2009-06-12 10:44:55.000000000 +0200
@@ -25,9 +25,11 @@
 #include <grp.h>
 #include <stdlib.h>
 #include <sys/stat.h>
+#include <string.h>
 
 #include "usertable.h"
 #include "incroncfg.h"
+#include "incrontab.h"
 
 #ifdef IN_DONT_FOLLOW
 #define DONT_FOLLOW(mask) InotifyEvent::IsType(mask, IN_DONT_FOLLOW)
@@ -335,7 +337,7 @@
           oldpos = pos + 2;
         }
         else if (cs[px] == '#') {     // file name
-          cmd.append(rEvt.GetName());
+          cmd.append(IncronTabEntry::GetSafePath(rEvt.GetName()));
           oldpos = pos + 2;
         }
         else if (cs[px] == '%') {     // mask symbols


