Disables the execution of shell scripts or lua code when parsing the
spec file. Replaces the script output with static text
"UNEXPANDEDSHELLSCRIPT".
Change-Id: I250bd753ec498a7bf03acf5436a8ed4f0ba28a31
FILE *shf;
int c;
+#ifdef WITH_LUA
+ rpmlog(RPMLOG_WARNING, _("Refusing to run shell code: %s\n"), cmd);
+ mbAppendStr(mb, "UNEXPANDEDSHELLSCRIPT");
+#else
if (expandThis(mb, cmd, clen, &buf))
goto exit;
exit:
_free(buf);
+#endif
}
/**