abuild: warn if world writable directories are found

This commit is contained in:
Natanael Copa 2012-02-13 09:44:45 +00:00
parent dd033763de
commit f7c56801e9
1 changed files with 6 additions and 0 deletions

View File

@ -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() {