aboutsummaryrefslogtreecommitdiffstats
path: root/www/jakarta-tomcat4
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-10-10 07:10:32 +0800
committerznerd <znerd@FreeBSD.org>2002-10-10 07:10:32 +0800
commit5f84609c1b6bcd9fdb2b4d4fb0bb74e19b467d5f (patch)
tree3fd2ca23521609293e1f8ceaac5f0a3a27ba7158 /www/jakarta-tomcat4
parent6f7e32b5e2a1661847ba9eeee3cf230af63ab2eb (diff)
downloadfreebsd-ports-gnome-5f84609c1b6bcd9fdb2b4d4fb0bb74e19b467d5f.tar.gz
freebsd-ports-gnome-5f84609c1b6bcd9fdb2b4d4fb0bb74e19b467d5f.tar.zst
freebsd-ports-gnome-5f84609c1b6bcd9fdb2b4d4fb0bb74e19b467d5f.zip
Fixed daemonctl control program to work with the FreeBSD JDK 1.3.1.
The fix consists of 2 lines at the beginning of the program: setuid(geteuid()); setgid(getegid()); Bumped PORTREVISION of Orion, Tomcat and JBoss ports. PR: 40470, 43679 Submitted by: Ari Suutari <ari.suutari@syncrontech.com> Reviewed by: audit Approved by: Silence on -audit (since Sept 13, 2002)
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r--www/jakarta-tomcat4/Makefile2
-rw-r--r--www/jakarta-tomcat4/files/daemonctl.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/www/jakarta-tomcat4/Makefile b/www/jakarta-tomcat4/Makefile
index 51cdbc05f1fb..a243dad33889 100644
--- a/www/jakarta-tomcat4/Makefile
+++ b/www/jakarta-tomcat4/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jakarta-tomcat
PORTVERSION= 4.0.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www java
MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat-${PORTVERSION:R}/release/v${PORTVERSION}/bin/ \
http://www.metaverse.nl/~ernst/ \
diff --git a/www/jakarta-tomcat4/files/daemonctl.c b/www/jakarta-tomcat4/files/daemonctl.c
index 765a870fd4e8..ac0fbd744d99 100644
--- a/www/jakarta-tomcat4/files/daemonctl.c
+++ b/www/jakarta-tomcat4/files/daemonctl.c
@@ -4,7 +4,7 @@
*
* Daemon control program.
*
- * $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat4/files/Attic/daemonctl.c,v 1.9 2002-08-28 22:54:21 znerd Exp $
+ * $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat4/files/Attic/daemonctl.c,v 1.10 2002-10-09 23:10:32 znerd Exp $
*/
#include <assert.h>
@@ -78,6 +78,10 @@ int main(int argc, char *argv[]) {
return 0;
}
+ /* XXX: Fix for setting up the environment for the java wrapper script */
+ setuid(geteuid());
+ setgid(getegid());
+
argument = argv[1];
if (strcmp("start", argument) == 0) {
start();