aboutsummaryrefslogtreecommitdiffstats
path: root/www/tomcat41
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-08-28 17:29:59 +0800
committerznerd <znerd@FreeBSD.org>2002-08-28 17:29:59 +0800
commit18127ba282bf0dd09f235a9f1fd56fe100ef22fb (patch)
tree68eece8b1d823aab0ac3ad43c609d1c9ab912f17 /www/tomcat41
parent1842c0f2a81c55167d85150afc09fc9005ce5421 (diff)
downloadfreebsd-ports-gnome-18127ba282bf0dd09f235a9f1fd56fe100ef22fb.tar.gz
freebsd-ports-gnome-18127ba282bf0dd09f235a9f1fd56fe100ef22fb.tar.zst
freebsd-ports-gnome-18127ba282bf0dd09f235a9f1fd56fe100ef22fb.zip
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/tomcat41')
-rw-r--r--www/tomcat41/files/daemonctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/tomcat41/files/daemonctl.c b/www/tomcat41/files/daemonctl.c
index 8a230913d263..a1e280b5a715 100644
--- a/www/tomcat41/files/daemonctl.c
+++ b/www/tomcat41/files/daemonctl.c
@@ -4,7 +4,7 @@
*
* Daemon control program.
*
- * $FreeBSD: /tmp/pcvs/ports/www/tomcat41/files/Attic/daemonctl.c,v 1.7 2002-08-28 09:22:01 znerd Exp $
+ * $FreeBSD: /tmp/pcvs/ports/www/tomcat41/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();