Add an error message when rpm fails to open a pipe for shell expansion
This commit is contained in:
parent
0508e9a6e3
commit
ff4ce836e7
|
@ -483,7 +483,8 @@ doShellEscape(MacroBuf mb, const char * cmd, size_t clen)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
if ((shf = popen(buf, "r")) == NULL) {
|
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;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue