make: add grepping from #9325 to lint-exec pass

No error, but visibility.
This commit is contained in:
Franco Fichtner 2025-11-19 11:24:06 -05:00
parent 7fe42e78c5
commit 17a3ff34d3

View file

@ -116,6 +116,16 @@ lint-exec:
(echo "Missing executable permission in ${DIR}"; exit 1)
.endif
.endfor
.for DIR in ${.CURDIR}/src
.if exists(${DIR})
@git grep -e '[^li][^w>:]exec(' -e '^exec(' -e 'shell_exec(' \
-e '[^f]passthru(' -e '^passthru(' -e '[^._a-z]system(' \
-e '^system(' ':!*.js' ':!*.py' ':!*/contrib/*' \
':!*/OPNsense/Core/Shell.php' ':!*/interfaces.lib.inc' \
':!*/inc/certs.inc' ':!*/rc.configure_firmware' \
':!*/rc.subr.d/recover' ${DIR}
.endif
.endfor
lint-php:
.for DIR in ${.CURDIR}/src