From: Daniel Carl Date: Sat, 6 Apr 2013 14:48:19 +0000 (+0200) Subject: Fixed wrong file lock used to read history items. X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=86c155d4dec931572b3edeaf7bb5a83441cf1a53;p=vimb.git Fixed wrong file lock used to read history items. --- 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);