diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-02-21 13:45:35 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-02-21 13:46:15 -0800 |
commit | aaa42799b39bd2ad5a345ab28c71dac1a7a94664 (patch) | |
tree | 568924938a24c7ba3916f440ed30b333da908dd6 /sys-apps/man-db/files | |
parent | www-client/vivaldi: Old. (diff) | |
download | gentoo-aaa42799b39bd2ad5a345ab28c71dac1a7a94664.tar.gz gentoo-aaa42799b39bd2ad5a345ab28c71dac1a7a94664.tar.bz2 gentoo-aaa42799b39bd2ad5a345ab28c71dac1a7a94664.zip |
sys-apps/man-db: re-fix security bug #602588 because of comment #18.
Package-Manager: portage-2.3.3
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'sys-apps/man-db/files')
-rw-r--r-- | sys-apps/man-db/files/man-db.cron | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys-apps/man-db/files/man-db.cron b/sys-apps/man-db/files/man-db.cron index ced63900fca6..d94e594d1acf 100644 --- a/sys-apps/man-db/files/man-db.cron +++ b/sys-apps/man-db/files/man-db.cron @@ -1,10 +1,11 @@ #!/bin/sh # Use same perms/settings as the ebuild. -if [ ! -d /var/cache/man ]; then - mkdir -p /var/cache/man - chown man:root /var/cache/man - chmod 2755 /var/cache/man +cachedir="/var/cache/man" +if [ ! -d ${cachedir} ]; then + mkdir -p "${cachedir}" + chown man:man "${cachedir}" + chmod 0755 "${cachedir}" fi exec nice mandb --quiet |