Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/log.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-04-12 00:01:22 -0400
committerAllan McRae <allan@archlinux.org>2015-05-12 14:00:54 +1000
commit1545a042535a8c73c1fa5e0a8bc399394f553a4f (patch)
treed7bef26415856480279ccf4c8ef73608b4c95d3a /lib/libalpm/log.c
parente4af5e3c9787a37103e71c7814564435ec241d4c (diff)
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>
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r--lib/libalpm/log.c2
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;
}
}