git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
12b01ba
)
checksec: mark version check override as executable
author
George Sapkin
<redacted>
Mon, 11 May 2026 19:53:02 +0000
(22:53 +0300)
committer
Alexandru Ardelean
<redacted>
Sat, 16 May 2026 14:49:10 +0000
(17:49 +0300)
Mark version check override as executable and add explicit package checks.
Signed-off-by: George Sapkin <redacted>
utils/checksec/test-version.sh
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/utils/checksec/test-version.sh
b/utils/checksec/test-version.sh
old mode 100644
(file)
new mode 100755
(executable)
index
7f04456
..
3560c84
--- a/
utils/checksec/test-version.sh
+++ b/
utils/checksec/test-version.sh
@@
-1,9
+1,16
@@
#!/bin/sh
+# shellckeck shell=busybox
+
# checksec reported version doesn't match package version as of 3.1.0
-case "$
1
" in
+case "$
PKG_NAME
" in
checksec)
checksec --version 2>&1 | grep -qF "2.7.1"
;;
+
+*)
+ echo "Untested package: $PKG_NAME" >&2
+ exit 1
+ ;;
esac
git clone https://git.99rst.org/PROJECT