summaryrefslogtreecommitdiffstats
path: root/main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch')
-rw-r--r--main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch b/main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
new file mode 100644
index 000000000..34f3de1a1
--- /dev/null
+++ b/main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
@@ -0,0 +1,25 @@
+From 19b08adf3520a221e77fe6ea4ebbeddd66966cac Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Fri, 30 Jan 2015 09:08:58 +0200
+Subject: [PATCH 1/3] Fix lpostcmd to use isPostcmd via rawget as intended
+
+---
+ examples/lpostcmd.lua | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/examples/lpostcmd.lua b/examples/lpostcmd.lua
+index b48b0da..11f7faf 100644
+--- a/examples/lpostcmd.lua
++++ b/examples/lpostcmd.lua
+@@ -25,7 +25,7 @@ local rsyncpostcmd = {
+ -- uses rawget to test if "isPostcmd" has been set without
+ -- triggering an error if not.
+ local isPostcmd = rawget(event, "isPostcmd")
+- if event.isPostcmd then
++ if isPostcmd then
+ spawn(event, "/usr/bin/ssh",
+ config.host, config.postcmd)
+ return
+--
+2.2.2
+