jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 2d55ed0999d2f8716e7c70609b8eff74709bed68
parent 4a12cc222848994d4d797743f9a580c0b903c78d
Author: Jaromil <jaromil@dyne.org>
Date:   Mon,  5 May 2014 19:36:06 +0200

dotlock paths detected in zlib locking

Diffstat:
Msrc/zlibs/locking | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/zlibs/locking b/src/zlibs/locking @@ -20,8 +20,18 @@ # this source code; if not, write to: # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +command -v mutt_dotlock > /dev/null +{ test $? = 0 } && { dotlock=mutt_dotlock } + +command -v dotlock > /dev/null +{ test $? = 0 } && { dotlock=dotlock } + +{ test -z dotlock } && { + error "dotlock not found." + exit 1 } + lock() { - func "lock: $1" + func "$dotlock: $1" ${=dotlock} ${1} case $? in 1) error "Cannot lock non existing file: $1"