return clr_config_namespace_clone(key, lxc_conf, data);
if (lxc_conf->ns_keep != 0) {
- ERROR("%s - Cannot set both \"lxc.namespace.clone\" and "
- "\"lxc.namespace.keep\"", strerror(EINVAL));
+ errno = EINVAL;
+ SYSERROR("Cannot set both \"lxc.namespace.clone\" and "
+ "\"lxc.namespace.keep\"");
return -EINVAL;
}
return clr_config_namespace_keep(key, lxc_conf, data);
if (lxc_conf->ns_clone != 0) {
- ERROR("%s - Cannot set both \"lxc.namespace.clone\" and "
- "\"lxc.namespace.keep\"", strerror(EINVAL));
+ errno = EINVAL;
+ SYSERROR("Cannot set both \"lxc.namespace.clone\" and "
+ "\"lxc.namespace.keep\"");
return -EINVAL;
}
/* parse current index */
ret = lxc_safe_uint((idx_start + 1), &tmpidx);
if (ret < 0) {
- ERROR("Failed to parse usigned integer from string \"%s\": %s",
- idx_start + 1, strerror(-ret));
+ errno = -ret;
+ SYSERROR("Failed to parse usigned integer from string \"%s\"",
+ idx_start + 1);
*idx = ret;
goto on_error;
}