[tomcat7] 01/02: Hardened the init.d script, thanks to Paul Szabo

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sun Oct 30 11:54:16 UTC 2016


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

ebourg-guest pushed a commit to branch jessie
in repository tomcat7.

commit e01583ae2de71303c1d0cf7d26e4451de7a95d20
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Oct 28 01:31:42 2016 +0200

    Hardened the init.d script, thanks to Paul Szabo
---
 debian/changelog    | 6 ++++++
 debian/tomcat7.init | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6e9093d..42809ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tomcat7 (7.0.56-3+deb8u5) jessie-security; urgency=high
+
+  * Hardened the init.d script, thanks to Paul Szabo
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Sun, 30 Oct 2016 12:51:13 +0100
+
 tomcat7 (7.0.56-3+deb8u4) jessie-security; urgency=high
 
   * Team upload.
diff --git a/debian/tomcat7.init b/debian/tomcat7.init
index b21ee58..37d670f 100644
--- a/debian/tomcat7.init
+++ b/debian/tomcat7.init
@@ -209,11 +209,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 $TOMCAT7_USER "$JVM_TMP"
+		chown -h $TOMCAT7_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/tomcat7.git



More information about the pkg-java-commits mailing list