further lockfile debugging.
[monkeysphere.git] / src / common
index 25f7e4efc245fa7b95cb39ca946a1e50ab8fef23..556dd5ad6b5e88ddac1ce550ef2510b567a5125c 100644 (file)
@@ -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