sci-mathematics/gimps: Fix potential privilege escalation through hardlinks in config...
authorPPed72 <paolo.pedroni@iol.it>
Fri, 23 Dec 2016 13:09:45 +0000 (14:09 +0100)
committerMichael Orlitzky <mjo@gentoo.org>
Fri, 23 Dec 2016 15:56:21 +0000 (10:56 -0500)
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
sci-mathematics/gimps/files/gimps-28.9-init.d [moved from sci-mathematics/gimps/files/gimps-26.6-r1-init.d with 82% similarity]
sci-mathematics/gimps/gimps-28.10.ebuild
sci-mathematics/gimps/gimps-28.9.ebuild

similarity index 82%
rename from sci-mathematics/gimps/files/gimps-26.6-r1-init.d
rename to sci-mathematics/gimps/files/gimps-28.9-init.d
index 73ef6a962ed9fa2f1bdd7dbdc1248746f5e3e5f2..00eca8268055cf49a79d50e74fb5a49e33b827dc 100644 (file)
@@ -7,12 +7,7 @@ depend() {
 }
 
 checkconfig() {
-       if [ ! -e "${GIMPS_DIR}" ]; then
-               einfo "Creating ${GIMPS_DIR}"
-               /bin/mkdir "${GIMPS_DIR}"
-       fi
-
-       /bin/chown -R ${USER}:${GROUP} ${GIMPS_DIR}
+       checkpath -d -o ${USER}:${GROUP} ${GIMPS_DIR}
 
        if [ ! -e "${GIMPS_DIR}/local.txt" ]; then
                eerror "GIMPS has not been configured.  Please configure it manually before"
index d92f5fbab038e01f6d6e5eee539f0d7d3cc4c149..34a48f2091c0315c554e8a346d6c79a74059f0ba 100644 (file)
@@ -40,7 +40,7 @@ src_install() {
 
        einstalldocs
 
-       newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
+       newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
        newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
 
        systemd_dounit "${FILESDIR}/${PN}.service"
index 6e0d02e2586c2750db6feea4cd055449d2b7566a..d4773204c25fa72836056d5edd3e90469f1d6f91 100644 (file)
@@ -40,7 +40,7 @@ src_install() {
 
        einstalldocs
 
-       newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
+       newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
        newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
 
        systemd_dounit "${FILESDIR}/${PN}.service"