aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-17 06:03:49 -0400
committerB. Watson <urchlay@slackware.uk>2023-06-17 06:03:49 -0400
commit9c9371a55b0f4f0801c2a0eb7fec742e55acef1d (patch)
tree4037f33b599490b0847b2bb4250ef99694c6c12c
parenta154221eab368e21d219479e5e5a715dd14012be (diff)
downloadsbo-maintainer-tools-9c9371a55b0f4f0801c2a0eb7fec742e55acef1d.tar.gz
sbopkglint: actually check owner/perms of icons.
-rw-r--r--NEWS6
-rw-r--r--sbopkglint.d/50-icons.t.sh10
2 files changed, 15 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4774fb1..aca2302 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,12 @@
The real ChangeLog is the git log. This is just a summary of the
user-visible changes between releases.
+New in 0.9.0:
+=============
+
+sbopkglint:
+- Spaces in filenames are now handled correctly.
+
New in 0.8.2:
=============
diff --git a/sbopkglint.d/50-icons.t.sh b/sbopkglint.d/50-icons.t.sh
index 1f1f032..8b3303a 100644
--- a/sbopkglint.d/50-icons.t.sh
+++ b/sbopkglint.d/50-icons.t.sh
@@ -75,9 +75,17 @@ for icondir in usr/share/pixmaps usr/share/icons/hicolor; do
if [ -d "$icondir" ]; then
find -L "$icondir" -type f | while read i; do
check_image "$i"
+ [ "$( stat -Lc '%a %U %G' "$i" )" = "644 root root" ] || \
+ ls -ld "$i" >> .badperms.$$
done
fi
done
[ -s .nonimages.$$ ] && warn "non-image files in icon dirs:" && cat .nonimages.$$
-rm -f .nonimages.$$
+
+if [ -s .badperms.$$ ]; then
+ warn "bad permissions/owner on icon(s) (should be 0644 root:root):"
+ cat .badperms.$$
+fi
+
+rm -f .nonimages.$$ .badperms.$$