From ea61a8125616e548a13f64bfef1a3fc92c26e7f8 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 19 Jun 2001 14:21:05 +0000 Subject: Fixed a bug when not running setuid it wouldn't unlock. 2001-06-19 Not Zed * camel-lock-helper.c (unlock_id): Fixed a bug when not running setuid it wouldn't unlock. * camel-movemail.c (camel_movemail): use new locking daemon, also return an error code. svn path=/trunk/; revision=10287 --- camel/camel-lock-helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'camel/camel-lock-helper.c') diff --git a/camel/camel-lock-helper.c b/camel/camel-lock-helper.c index 06463f2cf4..7cb381eae0 100644 --- a/camel/camel-lock-helper.c +++ b/camel/camel-lock-helper.c @@ -225,10 +225,10 @@ static int unlock_id(guint32 lockid) seteuid(lock_root_uid); camel_unlock_dot(info->path); seteuid(lock_real_uid); - } -#else - camel_unlock_dot(info->path); + } else #endif + camel_unlock_dot(info->path); + p->next = info->next; free(info); } -- cgit v1.2.3