Add mimedef fallthrough

If no pipeline is given, fallthrough to the next pipeline.
This commit is contained in:
styan 2020-06-20 10:39:04 +00:00
parent f1bc8a9721
commit d467e45de7
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ main(int argc, char *argv[])
strcmp(tmime->target, mimestr) != 0;
tmime = tmime->next)
/* do nothing */;
while (tmime != NULL && tmime->recipe == NULL)
tmime = tmime->next;
(void)setenv("mime", mimestr, 1);
fp = popen(tmime != NULL ? tmime->recipe : drecipe,
"w");