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 <[email protected]> --- 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 c049bf9..602dd37 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; } } -- 2.3.5
