Browse Source

fix(install): segfault on popen error

master
Andrey Sokolov 3 years ago committed by Jóhann B. Guðmundsson
parent
commit
5c2f72f152
  1. 4
      src/install/dracut-install.c

4
src/install/dracut-install.c

@ -550,6 +550,10 @@ static int resolve_deps(const char *src) @@ -550,6 +550,10 @@ static int resolve_deps(const char *src)
ret = 0;

fptr = popen(cmd, "r");
if (fptr == NULL) {
log_error("Error '%s' initiating pipe stream from '%s'", strerror(errno), cmd);
exit(EXIT_FAILURE);
}

while (!feof(fptr)) {
char *p;

Loading…
Cancel
Save