summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-13 09:44:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-13 13:49:25 +0000
commitf7c56801e962c39eac84dcde40c219f6abb0e09b (patch)
tree2d278b0ff6a9ecd82ee5bc93794f5c7d98d69722 /abuild.in
parentdd033763de7ada2831b483c2704939c9dd4db97a (diff)
downloadabuild-f7c56801e962c39eac84dcde40c219f6abb0e09b.tar.gz
abuild-f7c56801e962c39eac84dcde40c219f6abb0e09b.tar.bz2
abuild-f7c56801e962c39eac84dcde40c219f6abb0e09b.tar.xz
abuild-f7c56801e962c39eac84dcde40c219f6abb0e09b.zip
abuild: warn if world writable directories are found
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 4ced139..47492f8 100755
--- a/abuild.in
+++ b/abuild.in
@@ -558,6 +558,12 @@ prepare_subpackages() {
warning "Found /usr/share/locale"
warning "Maybe add \$pkgname-lang to subpackages?"
fi
+ # check directory permissions
+ i=$(find "$pkgdir" -type d -perm -777 | sed "s|^$pkgdir|\t|")
+ if [ -n "$i" ]; then
+ warning "World writeable directories found:"
+ echo "$i"
+ fi
}
default_lang() {