summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat4
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-08-28 09:29:59 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-08-28 09:29:59 +0000
commita23e6ab5b9cc5770e905d4eaea5d985b2722e744 (patch)
tree884866c4984c32b4b9c16b0c0e41ec91580251bb /www/jakarta-tomcat4
parentFixed a typo. Replaced %%PORTREVISION%% with %%PORTVERSION%%. (diff)
Executing setuid(geteuid()) to fix SUID. At the moment SUID does
not work. Submitted by: Ari Suutari <ari.suutari@syncrontech.com> See: http://www.geocrawler.com/mail/msg.php3?msg_id=9029840&list=162
Notes
Notes: svn path=/head/; revision=65167
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r--www/jakarta-tomcat4/files/daemonctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/jakarta-tomcat4/files/daemonctl.c b/www/jakarta-tomcat4/files/daemonctl.c
index b33732ae1604..1bc36368241f 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.7 2002-08-28 09:22:01 znerd Exp $
+ * $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat4/files/Attic/daemonctl.c,v 1.8 2002-08-28 09:29:59 znerd Exp $
*/
#include <assert.h>
@@ -78,6 +78,9 @@ int main(int argc, char *argv[]) {
return 0;
}
+ /* Set the UID to the effective UID to fix SUID */
+ setuid(geteuid());
+
argument = argv[1];
if (strcmp("start", argument) == 0) {
start();