Skip to content

Commit

Permalink
Merge pull request #2767 from Blub/2019-01-04/use-syserror-on-write-e…
Browse files Browse the repository at this point in the history
…rror

conf: use SYSERROR on lxc_write_to_file errors
  • Loading branch information
brauner committed Jan 4, 2019
2 parents dfaaf1c + 688e898 commit 5f666a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lxc/conf.c
Expand Up @@ -2681,8 +2681,8 @@ 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",
elem->key, elem->value);
SYSERROR("Failed to setup sysctl parameters %s to %s",
elem->key, elem->value);
return -1;
}
}
Expand Down Expand Up @@ -2716,8 +2716,8 @@ 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",
elem->filename, elem->value);
SYSERROR("Failed to setup proc filesystem %s to %s",
elem->filename, elem->value);
return -1;
}
}
Expand Down

0 comments on commit 5f666a8

Please sign in to comment.