summaryrefslogtreecommitdiffstats
path: root/www/jakarta-tomcat4/files/daemonctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/jakarta-tomcat4/files/daemonctl.c')
-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 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();
OpenPOWER on IntegriCloud