diff options
author | znerd <znerd@FreeBSD.org> | 2002-08-28 09:29:59 +0000 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2002-08-28 09:29:59 +0000 |
commit | 18127ba282bf0dd09f235a9f1fd56fe100ef22fb (patch) | |
tree | 68eece8b1d823aab0ac3ad43c609d1c9ab912f17 /www/jakarta-tomcat4 | |
parent | 1842c0f2a81c55167d85150afc09fc9005ce5421 (diff) | |
download | FreeBSD-ports-18127ba282bf0dd09f235a9f1fd56fe100ef22fb.zip FreeBSD-ports-18127ba282bf0dd09f235a9f1fd56fe100ef22fb.tar.gz |
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
Diffstat (limited to 'www/jakarta-tomcat4')
-rw-r--r-- | www/jakarta-tomcat4/files/daemonctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www/jakarta-tomcat4/files/daemonctl.c b/www/jakarta-tomcat4/files/daemonctl.c index b33732a..1bc36368 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(); |