aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/05-basic-sanity.t.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh
index d172cf9..d799ab9 100644
--- a/sbopkglint.d/05-basic-sanity.t.sh
+++ b/sbopkglint.d/05-basic-sanity.t.sh
@@ -89,6 +89,10 @@ warn_badperms() {
warn "bad permissions/owner (should be 0755 root:root): $1"
}
+if LANG=C echo "$PRGNAM" | grep -q [^-._+A-Za-z0-9]; then
+ warn "package name has invalid characters, only A-Z, a-z, 0-9, - + . _ are allowed";
+fi
+
for i in *; do
if [ ! -d "$i" ]; then
warn "package root dir contains non-directory: $i"