From ff4ce836e7ff25e11b4be7ec419e10c66e8b127a Mon Sep 17 00:00:00 2001 From: Pavlina Moravcova Varekova Date: Wed, 25 Sep 2019 10:39:11 +0200 Subject: [PATCH] Add an error message when rpm fails to open a pipe for shell expansion --- rpmio/macro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmio/macro.c b/rpmio/macro.c index cdd5f8714..536072f7c 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -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; }