Function create_temp_file was returning unprocessed output of mktemp command, which contains a trailing newline. Callers which tryed to write to the temp file were creating a new one instead. Reviewed-By: Michal Polovka <mpolovka@redhat.com>
message