From 1545a042535a8c73c1fa5e0a8bc399394f553a4f Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 12 Apr 2015 00:01:22 -0400 Subject: alpm_logaction: allow falling back to syslog Even if opening the log file fails, if a user has enabled syslog we may still be able to log to that. Set the error return value and continue instead of bailing out. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c index c049bf90..602dd371 100644 --- a/lib/libalpm/log.c +++ b/lib/libalpm/log.c @@ -68,7 +68,7 @@ int SYMEXPORT alpm_logaction(alpm_handle_t *handle, const char *prefix, } else { handle->pm_errno = ALPM_ERR_SYSTEM; } - return -1; + ret = -1; } } -- cgit v1.2.3-70-g09d2