Description: Fix some breakage
 add trigger on "modify"
Author: Ryan Niebur <ryanryan52@gmail.com>
Reviewed-by: Carsten Leonhardt <leo@debian.org>
Last-Update: 2016-12-11
--- a/inosync.py
+++ b/inosync.py
@@ -39,7 +39,8 @@
     "IN_CREATE",
     "IN_DELETE",
     "IN_MOVED_FROM",
-    "IN_MOVED_TO"
+    "IN_MOVED_TO",
+    "IN_MODIFY"
 ]
 
 class RsyncEvent(ProcessEvent):
@@ -72,7 +73,7 @@
 
   def process_default(self, event):
     syslog(LOG_DEBUG, "caught %s on %s" % \
-        (event.maskname, os.path.join(event.path, event.name)))
+        (event.maskname, event.pathname))
     self.sync()
 
 def daemonize():
--- a/sample_config.py
+++ b/sample_config.py
@@ -29,6 +29,7 @@
 #	"IN_DELETE",
 #	"IN_MOVED_FROM",
 #	"IN_MOVED_TO",
+#	"IN_MODIFY",
 #]
 
 # event delay in seconds (prevents huge amounts of syncs, but dicreases the
