fp = fdopen(fd, "r");
if (fp == NULL) {
err = -errno;
- ERR(config->ctx, "fd %d: %m", fd);
+ ERR(config->ctx, "fd %d: %m\n", fd);
close(fd);
return err;
}
err = kmod_module_get_softdeps(mod, &pre, &post);
if (err < 0) {
- ERR(mod->ctx, "could not get softdep: %s", strerror(-err));
+ ERR(mod->ctx, "could not get softdep: %s\n",
+ strerror(-err));
goto fail;
}
if (t->output.stdout != NULL) {
close(fdout[0]);
if (dup2(fdout[1], STDOUT_FILENO) < 0) {
- ERR("could not redirect stdout to pipe: %m");
+ ERR("could not redirect stdout to pipe: %m\n");
exit(EXIT_FAILURE);
}
}
if (t->output.stderr != NULL) {
close(fderr[0]);
if (dup2(fderr[1], STDERR_FILENO) < 0) {
- ERR("could not redirect stdout to pipe: %m");
+ ERR("could not redirect stdout to pipe: %m\n");
exit(EXIT_FAILURE);
}
}
return setenv("PATH", extra, 1);
if (asprintf(&newpath, "%s:%s", extra, oldpath) < 0) {
- ERR("failed to allocate memory to new PATH");
+ ERR("failed to allocate memory to new PATH\n");
return -1;
}