summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/log.c')
-rw-r--r--lib/libalpm/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c
index 82c0edad..26f811e5 100644
--- a/lib/libalpm/log.c
+++ b/lib/libalpm/log.c
@@ -76,11 +76,11 @@ int SYMEXPORT alpm_logaction(alpm_handle_t *handle, const char *prefix,
/* if we couldn't open it, we have an issue */
if(fd < 0 || (handle->logstream = fdopen(fd, "a")) == NULL) {
if(errno == EACCES) {
- handle->pm_errno = ALPM_ERR_BADPERMS;
+ _alpm_set_errno(handle, ALPM_ERR_BADPERMS);
} else if(errno == ENOENT) {
- handle->pm_errno = ALPM_ERR_NOT_A_DIR;
+ _alpm_set_errno(handle, ALPM_ERR_NOT_A_DIR);
} else {
- handle->pm_errno = ALPM_ERR_SYSTEM;
+ _alpm_set_errno(handle, ALPM_ERR_SYSTEM);
}
ret = -1;
}