vtfontcvt: Return error from write_fnt_source

Previously write_fnt_source always returned 0, silently discarding
errors.  Return rv so that errors set vtfontcvt's shell exit
appropriately.

Sponsored by: The FreeBSD Foundation
This commit is contained in:
Ed Maste
2026-05-22 14:37:51 -04:00
parent 490c53e935
commit f05fb5157b
+1 -1
View File
@@ -987,7 +987,7 @@ write_fnt_source(bool lz4, const char *filename)
if (rv != 0)
perror(filename);
fclose(fp);
return (0);
return (rv);
}
static void