mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 17:30:53 +00:00
confile: config_syslog()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
151d2da2dd
commit
ee10a69cfc
@ -3300,9 +3300,17 @@ static int config_syslog(const char *key, const char *value,
|
||||
{
|
||||
int facility;
|
||||
|
||||
/* Clear any previously set value. */
|
||||
if (lxc_conf->syslog) {
|
||||
free(lxc_conf->syslog);
|
||||
lxc_conf->syslog = NULL;
|
||||
}
|
||||
|
||||
/* Check if value is empty. */
|
||||
if (config_value_empty(value))
|
||||
return 0;
|
||||
|
||||
/* Parse value. */
|
||||
facility = lxc_syslog_priority_to_int(value);
|
||||
if (facility == -EINVAL) {
|
||||
ERROR("Wrong value for lxc.syslog.");
|
||||
|
Loading…
Reference in New Issue
Block a user