]> git.corax.cc Git - toolbox/commit
toolbox: Make have(), _try_include(), include() read-only
authorMatthias Kruk <m@m10k.eu>
Mon, 14 Jun 2021 21:23:02 +0000 (06:23 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 14 Jun 2021 21:23:02 +0000 (06:23 +0900)
commit394e5ac616303b237a70a6ad9fc7c0e170c9c201
tree10e988a1bd028146fec577f90a688ea75108462d
parent4eb9539b76f501bcdb6b4622d7e6696a27f24587
toolbox: Make have(), _try_include(), include() read-only

Functions from toolbox.sh may be redeclared, causing all sorts of
problems from simple bugs to security issues.
This commit makes sure the functions are declared read-only when
toolbox is loaded so the user can't shoot themself in the foot.
toolbox.sh