From 5df0b2faaf9321dd1374afa13b975b6e96310e34 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 22 Jul 1999 00:41:21 +0000 Subject: [PATCH] (lock_if_free): Return -1 if check_lock_owner() has returned -1 (lockfile exists but is not a symlink?) --- src/filelock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filelock.c b/src/filelock.c index dcf3c658ce0..becdbc73bd6 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -514,6 +514,8 @@ lock_if_free (clasher, lfname) } else if (locker == 1) return 1; /* Someone else has it. */ + else if (locker == -1) + return -1; /* current_lock_owner() returned strange error */ /* We deleted a stale lock; try again to lock the file. */ } -- 2.39.5