mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-17 01:45:09 +00:00
conf: use SYSERROR on lxc_write_to_file errors
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
dfaaf1cf5a
commit
688e8982bc
@ -2681,7 +2681,7 @@ int setup_sysctl_parameters(struct lxc_list *sysctls)
|
||||
ret = lxc_write_to_file(filename, elem->value,
|
||||
strlen(elem->value), false, 0666);
|
||||
if (ret < 0) {
|
||||
ERROR("Failed to setup sysctl parameters %s to %s",
|
||||
SYSERROR("Failed to setup sysctl parameters %s to %s",
|
||||
elem->key, elem->value);
|
||||
return -1;
|
||||
}
|
||||
@ -2716,7 +2716,7 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
|
||||
ret = lxc_write_to_file(filename, elem->value,
|
||||
strlen(elem->value), false, 0666);
|
||||
if (ret < 0) {
|
||||
ERROR("Failed to setup proc filesystem %s to %s",
|
||||
SYSERROR("Failed to setup proc filesystem %s to %s",
|
||||
elem->filename, elem->value);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user