- Trigger scriptlets differ from other types in that additional
arguments to scriptlet interpreter are not supported due to the
way trigger data is stored in the header. Until now any extra
arguments have just been quietly discarded, make it an hard
error to avoid surprises.
/* Trigger script insertion is always delayed in order to */
/* get the index right. */
if (tag == RPMTAG_TRIGGERSCRIPTS) {
+ if (progArgc > 1) {
+ rpmlog(RPMLOG_ERR,
+ _("line %d: interpreter arguments not allowed in triggers: %s\n"),
+ spec->lineNum, prog);
+ goto exit;
+ }
/* Add file/index/prog triple to the trigger file list */
index = addTriggerIndex(pkg, file, p, progArgv[0], scriptFlags);