From 315379072c186803be10c8d6bfbec3e85f08bdc5 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Mon, 27 Jun 2016 09:26:45 +0200 Subject: [PATCH] fixing files with only ] as special char in their name --- ChangeLog | 7 ++++++- default-rsync.lua | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c3df140..38b09bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ ??-??-????: - enhancement: add rsync options: "omit-dir-times" and "omit-link-times" + enhancement: add rsync options: + "omit-dir-times" + "omit-link-times" change: _verbatim forced for 'exitcodes' entry. + fix: ']' is not escaped for rsync rules, since rsync only applies + doesn't applie pattern matching if no other pattern chars + are found. 15-10-2015: 2.1.6 enhancement: Lsyncd now locks its pidfile diff --git a/default-rsync.lua b/default-rsync.lua index eac462c..fdb930c 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -122,8 +122,7 @@ rsync.action = function( inlet ) return p: gsub( '%?', '\\?' ): gsub( '%*', '\\*' ): - gsub( '%[', '\\[' ): - gsub( '%]', '\\]' ) + gsub( '%[', '\\[' ) end --