sysutils/grub2-bhyve: CURRENT build breaks on "gets" security hole

Sérgio Siegrist barulheira at gmail.com
Tue Oct 8 20:52:15 UTC 2019


Log from Trident build (13-CURRENT):


grub2-bhyve fails to compile with this error:
gcc8 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -MT argp-eexst.o -MD -MP 
-MF .deps/argp-eexst.Tpo -c -o argp-eexst.o argp-eexst.c
In file included from argp.h:22,
from argp-eexst.c:25:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function); did 
you mean 'getw'?
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^~~~~~~~~~~~~~~
gmake[5]: *** [Makefile:1030: argp-eexst.o] Error 1


I suppose replacing 'gets' with 'fgets' should fix it.



More information about the freebsd-virtualization mailing list