aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-01-30 10:47:20 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-01-30 10:48:09 +0200
commitb5baa711a9758d453cb33a6e23de7163e5b40c66 (patch)
tree03badc06fed2e9b8b94210ec3bb26e97be2e9c09 /main/lsyncd/0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
parent6f0559e6f3b1e5e7de0f8d28816971941809324d (diff)
downloadaports-b5baa711a9758d453cb33a6e23de7163e5b40c66.tar.bz2
aports-b5baa711a9758d453cb33a6e23de7163e5b40c66.tar.xz
main/lsyncd: additional fixes to lpostcmd
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 0000000000..34f3de1a10
--- /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
+