diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-04-12 00:01:22 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-05-12 14:00:54 +1000 |
commit | 1545a042535a8c73c1fa5e0a8bc399394f553a4f (patch) | |
tree | d7bef26415856480279ccf4c8ef73608b4c95d3a | |
parent | e4af5e3c9787a37103e71c7814564435ec241d4c (diff) | |
download | pacman-1545a042535a8c73c1fa5e0a8bc399394f553a4f.tar.xz |
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 <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | lib/libalpm/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |