Created attachment 207149 [details]
Patch to update doas
The attached patch updates the security/doas port from version 6.1 to 6.2. This brings in three improvements over the past release on FreeBSD:
Added -Wall to compiler to make sure we catch all compiler warnings, tested with both Clang and GCC.
Fixed a couple of compiler warnings that get rid of either unneeded variables or introduce sanity checks on return functions. This should make doas more secure, across platforms/compilers.
Added build-time optimizations. doas is now built with -O2 passed to the compiler. This can be overruled by modifying the OPT variable when it is passed to make/gmake. eg. make OPT="".
Created attachment 207353 [details]
Attached is an updated patch which brings this port up to date with upstream. (There has been a new release since this original problem report was filed.)