File busybox-1.37.0-builtin-exec-optional.patch of Package busybox
--- a/shell/ash.c 2024-09-26 16:00:52.000000000 +0200
+++ b/shell/ash.c 2024-10-11 13:13:29.029475639 +0200
@@ -93,6 +93,11 @@
//config: After "unset RANDOM" the generator will switch off and this
//config: variable will no longer have special treatment.
//config:
+//config:config ASH_EXEC
+//config: bool "exec builtin"
+//config: default y
+//config: depends on SHELL_ASH
+//config:
//config:config ASH_EXPAND_PRMT
//config: bool "Expand prompt string"
//config: default y
@@ -10203,7 +10208,9 @@
{ BUILTIN_REGULAR "echo" , echocmd },
#endif
{ BUILTIN_SPEC_REG "eval" , NULL }, /*evalcmd() has a differing prototype*/
+#if ENABLE_ASH_EXEC
{ BUILTIN_SPEC_REG "exec" , execcmd },
+#endif
{ BUILTIN_SPEC_REG "exit" , exitcmd },
{ BUILTIN_SPEC_REG_ASSG "export" , exportcmd },
{ BUILTIN_REGULAR "false" , falsecmd },