aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-lock-helper.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-06-19 22:21:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-06-19 22:21:05 +0800
commitea61a8125616e548a13f64bfef1a3fc92c26e7f8 (patch)
treeb6aeab7a044dbc5ac9c3aa48a74b7c080f8b6b9d /camel/camel-lock-helper.c
parent131c4514f73e4423bc3be32c3dd0338853f6ac05 (diff)
downloadgsoc2013-evolution-ea61a8125616e548a13f64bfef1a3fc92c26e7f8.tar.gz
gsoc2013-evolution-ea61a8125616e548a13f64bfef1a3fc92c26e7f8.tar.zst
gsoc2013-evolution-ea61a8125616e548a13f64bfef1a3fc92c26e7f8.zip
Fixed a bug when not running setuid it wouldn't unlock.
2001-06-19 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'camel/camel-lock-helper.c')
-rw-r--r--camel/camel-lock-helper.c6
1 files changed, 3 insertions, 3 deletions
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);
}