--- apache-2.eclass 2012-03-29 16:55:52.000000000 +0200 +++ apache-2.eclass 2012-03-29 16:56:06.000000000 +0200 @@ -539,7 +539,7 @@ for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do keepdir ${i} fowners apache:apache ${i} - fperms 0755 ${i} + fperms 0750 ${i} done } @@ -550,6 +550,11 @@ # because the default webroot is a copy of the files that exist elsewhere and we # don't want them to be managed/removed by portage when apache is upgraded. apache-2_pkg_postinst() { + # fix previously wrong set permissions Bug#398899 + for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do + chmod 0750 ${i} + done + if use ssl && [[ ! -e "${ROOT}/etc/ssl/apache2/server.pem" ]]; then SSL_ORGANIZATION="${SSL_ORGANIZATION:-Apache HTTP Server}" install_cert /etc/ssl/apache2/server