mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
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>
This commit is contained in:
parent
e4af5e3c97
commit
1545a04253
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user