[pacman-dev] [PATCH 3/4] alpm_logaction: allow falling back to syslog
Andrew Gregory
andrew.gregory.8 at gmail.com
Sun Apr 12 04:01:22 UTC 2015
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 at gmail.com>
---
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
More information about the pacman-dev
mailing list