Reverting to revision 1.7. This change should first be audited by

audit@ since it may be bypassing security restrictions.

Pointed out by:	kris
This commit is contained in:
Ernst de Haan 2002-08-28 22:54:21 +00:00
parent db3951437b
commit 8960bcb67e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65197
3 changed files with 3 additions and 12 deletions

View File

@ -4,7 +4,7 @@
*
* Daemon control program.
*
* $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat4/files/Attic/daemonctl.c,v 1.8 2002-08-28 09:29:59 znerd Exp $
* $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat4/files/Attic/daemonctl.c,v 1.9 2002-08-28 22:54:21 znerd Exp $
*/
#include <assert.h>
@ -78,9 +78,6 @@ 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();

View File

@ -4,7 +4,7 @@
*
* Daemon control program.
*
* $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat41/files/Attic/daemonctl.c,v 1.8 2002-08-28 09:29:59 znerd Exp $
* $FreeBSD: /tmp/pcvs/ports/www/jakarta-tomcat41/files/Attic/daemonctl.c,v 1.9 2002-08-28 22:54:21 znerd Exp $
*/
#include <assert.h>
@ -78,9 +78,6 @@ 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();

View File

@ -4,7 +4,7 @@
*
* Daemon control program.
*
* $FreeBSD: /tmp/pcvs/ports/www/tomcat41/files/Attic/daemonctl.c,v 1.8 2002-08-28 09:29:59 znerd Exp $
* $FreeBSD: /tmp/pcvs/ports/www/tomcat41/files/Attic/daemonctl.c,v 1.9 2002-08-28 22:54:21 znerd Exp $
*/
#include <assert.h>
@ -78,9 +78,6 @@ 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();