Checking the mime-type in the /etc/mime-types file is not done precisely.
For example for application/xml it also returns the file lines for application/xml-dtd and application/xml-external-parsed-entity.
So depending on how they are sorted in the file they could cause errors to the mktemp program.
The check should be revised.
Checking the mime-type in the /etc/mime-types file is not done precisely. For example for application/xml it also returns the file lines for application/xml-dtd and application/xml-external-parsed-entity. So depending on how they are sorted in the file they could cause errors to the mktemp program. The check should be revised.