aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/paxmark/APKBUILD8
-rw-r--r--main/paxmark/paxmark6
2 files changed, 7 insertions, 7 deletions
diff --git a/main/paxmark/APKBUILD b/main/paxmark/APKBUILD
index aee2788e28..c93698201c 100644
--- a/main/paxmark/APKBUILD
+++ b/main/paxmark/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=paxmark
pkgver=0.8
-pkgrel=1
+pkgrel=2
pkgdesc="Manage PaX marking of executables"
url="http://alpinelinux.org"
arch="noarch"
@@ -22,6 +22,6 @@ package() {
ln -s paxmark "$pkgdir"/usr/sbin/paxmark.sh || return 1
}
-md5sums="b5b1192f8ad0664a37f67f4187b3a8b7 paxmark"
-sha256sums="41bf92a2412200d22ca0f6c7e98d407ff5cb0c1495ccab58f8e1ba388812752f paxmark"
-sha512sums="e0f99417e5effb7e0e5269c625aff36e8bb0a6d47853ce9260c8a9f215c66ccf8b6c62f64992451325c80f3ae52e63cb0b355db8cb8fce5e0db8c695037d2df4 paxmark"
+md5sums="e0834d725b1a3f1e34d80b42639e138e paxmark"
+sha256sums="94cc7668dce946e61d75228ef0724fbd5ea58ea3386de921e92b71bda51f9cda paxmark"
+sha512sums="1ee1df5aba905c8c319e54ef69dfc0e83929693b2b3adbe7afe582588bb6d71006e3fa6483aa70b6664b322dd6ceec85ab12cd533db59b2c1b4cc1c8e484a6e5 paxmark"
diff --git a/main/paxmark/paxmark b/main/paxmark/paxmark
index 3bf6403035..decaa115bc 100644
--- a/main/paxmark/paxmark
+++ b/main/paxmark/paxmark
@@ -1,7 +1,7 @@
#!/bin/sh
-local ret=0
-local flags="${1//[!zPpEeMmRrSs]}"
+ret=0
+flags="${1//[!zPpEeMmRrSs]}"
[ -n "${flags}" ] || return 0
shift
@@ -14,7 +14,7 @@ for f in "$@"; do
done
# Create XATTR_PAX marking using attr
-local xval=""
+xval=""
[ "${flags//[!P]}" ] && xval="${xval}P"
[ "${flags//[!p]}" -a -z "${flags//[!P]}" ] && xval="${xval}p"
[ "${flags//[!E]}" ] && xval="${xval}E"