This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository tomcat8.

commit d2448a74f2a24c1e4b6ad61dd4495d147f4cb127
Author: Emmanuel Bourg <[email protected]>
Date:   Wed Oct 19 09:33:18 2016 +0200

    Hardened the init.d script, thanks to Paul Szabo (Closes: #840685)
---
 debian/changelog    | 1 +
 debian/tomcat8.init | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4a6b0be..38983eb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ tomcat8 (8.0.38-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release
     - Refreshed the patches
+  * Hardened the init.d script, thanks to Paul Szabo (Closes: #840685)
   * Fixed the OSGi metadata for tomcat8-jasper.jar and tomcat8-jasper-el.jar
   * Depend on libcglib-nodep-java instead of libcglib3-java
   * Removed the unused Lintian overrides
diff --git a/debian/tomcat8.init b/debian/tomcat8.init
index 0cffa37..b7df816 100644
--- a/debian/tomcat8.init
+++ b/debian/tomcat8.init
@@ -208,11 +208,11 @@ case "$1" in
 
                # Remove / recreate JVM_TMP directory
                rm -rf "$JVM_TMP"
-               mkdir -p "$JVM_TMP" || {
+               mkdir "$JVM_TMP" || {
                        log_failure_msg "could not create JVM temporary 
directory"
                        exit 1
                }
-               chown $TOMCAT8_USER "$JVM_TMP"
+               chown -h $TOMCAT8_USER "$JVM_TMP"
 
                catalina_sh start $SECURITY
                sleep 5

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/tomcat8.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to