aboutsummaryrefslogtreecommitdiff
path: root/www/tomcat41
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/tomcat41
parent97f02f513a68b57910528f2f84912ba67103492c (diff)
downloadports-a23e6ab5b9cc5770e905d4eaea5d985b2722e744.tar.gz
ports-a23e6ab5b9cc5770e905d4eaea5d985b2722e744.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
Notes
Notes: svn path=/head/; revision=65167
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();