Hi tech@, Close file descriptors on all exit paths in wsfontload(8).
Comments? OK? Index: usr.sbin/wsfontload/wsfontload.c =================================================================== RCS file: /cvs/src/usr.sbin/wsfontload/wsfontload.c,v retrieving revision 1.18 diff -u -p -r1.18 wsfontload.c --- usr.sbin/wsfontload/wsfontload.c 17 Jun 2017 19:27:54 -0000 1.18 +++ usr.sbin/wsfontload/wsfontload.c 18 Jun 2017 12:56:22 -0000 @@ -166,6 +166,7 @@ main(int argc, char *argv[]) i++; } while(res == 0); + close(wsfd); return (0); } @@ -245,6 +246,8 @@ main(int argc, char *argv[]) if (res < 0) err(3, "WSDISPLAYIO_LDFONT"); + close(ffd); + close(wsfd); return (0); }