Add an error message when rpm fails to open a pipe for shell expansion

This commit is contained in:
Pavlina Moravcova Varekova 2019-09-25 10:39:11 +02:00 committed by Panu Matilainen
parent 0508e9a6e3
commit ff4ce836e7
1 changed files with 2 additions and 1 deletions

View File

@ -483,7 +483,8 @@ doShellEscape(MacroBuf mb, const char * cmd, size_t clen)
goto exit;
if ((shf = popen(buf, "r")) == NULL) {
mb->error = 1;
mbErr(mb, 1, _("Failed to open shell expansion pipe for command: "
"%s: %m \n"), buf);
goto exit;
}