From 906cd15436b4f9eab5909c4a70ebae19ef208fab Mon Sep 17 00:00:00 2001 From: onovy Date: Sat, 28 Mar 2015 22:44:41 +0100 Subject: [PATCH] Locking fix in SyncOnChanges mode. --- osync.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osync.sh b/osync.sh index 6ba5cf0..13da458 100755 --- a/osync.sh +++ b/osync.sh @@ -1980,9 +1980,9 @@ function SyncOnChanges do if [ "$ConfigFile" != "" ] then - cmd="bash $osync_cmd \"$ConfigFile\" $opts --no-locks" + cmd="bash $osync_cmd \"$ConfigFile\" $opts" else - cmd="bash $osync_cmd $opts --no-locks" + cmd="bash $osync_cmd $opts" fi eval $cmd retval=$? @@ -2086,6 +2086,7 @@ do ;; --on-changes) sync_on_changes=1 + nolocks=1 ;; --no-locks) nolocks=1