file.c (file_read): Copy name when duplicating input file spec.