From 76f242f43c2d835d332ee9c449e2858ead571acb Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 01:46:15 -0400 Subject: [PATCH] further lockfile debugging. --- debian/changelog | 1 + packaging/freebsd/Makefile | 1 + src/common | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b034c88..fb0788e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ monkeysphere (0.16~pre-1) UNRELEASED; urgency=low [ Daniel Kahn Gillmor ] * replaced "#!/bin/bash" with "#!/usr/bin/env bash" for better portability. + * fixed busted lockfile arrangement, where empty file was being locked -- Daniel Kahn Gillmor Thu, 11 Sep 2008 23:16:31 -0400 diff --git a/packaging/freebsd/Makefile b/packaging/freebsd/Makefile index 2937d69..a03c108 100644 --- a/packaging/freebsd/Makefile +++ b/packaging/freebsd/Makefile @@ -21,6 +21,7 @@ COMMENT= use the OpenPGP web of trust to verify ssh connections LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls RUN_DEPENDS= base64:${PORTSDIR}/converters/base64 \ gpg:${PORTSDIR}/security/gnupg \ + lockfile:${PORTSDIR}/mail/procmail \ bash:${PORTSDIR}/shells/bash MAN1= monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1 diff --git a/src/common b/src/common index 25f7e4e..556dd5a 100644 --- a/src/common +++ b/src/common @@ -98,7 +98,7 @@ cutline() { lock() { local use_lockfileprogs=true local action="$1" - local file="$file" + local file="$2" if ! ( which lockfile-create >/dev/null 2>/dev/null ) ; then if ! ( which lockfile >/dev/null ); then -- 2.25.1