From 86c155d4dec931572b3edeaf7bb5a83441cf1a53 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 6 Apr 2013 16:48:19 +0200 Subject: [PATCH] Fixed wrong file lock used to read history items. --- src/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.c b/src/history.c index 11b59be..c4ce593 100644 --- a/src/history.c +++ b/src/history.c @@ -188,7 +188,7 @@ static GList *load(const char *file) return list; } - file_lock_set(fileno(f), F_WRLCK); + file_lock_set(fileno(f), F_RDLCK); while (fgets(buf, sizeof(buf), f)) { g_strstrip(buf); -- 2.20.1