From 163d95c5b9e9293e04771616b8b2ddfe166033e5 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 18 Jun 2007 22:09:41 +0200 Subject: [PATCH] * popt.c: Remove code calling setresuid and setreuid, pkg-config should not ever be suid. Partially addresses Freedesktop #10652 --- ChangeLog | 3 +++ popt.c | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8648779..f1888dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-06-18 Tollef Fog Heen + * popt.c: Remove code calling setresuid and setreuid, pkg-config + should not ever be suid. Partially addresses Freedesktop #10652 + * glib-patches/autoconf-warning.diff, glib-patches/automake-warning.diff Fix path prefix so it applies. diff --git a/popt.c b/popt.c index 9dff8ef..8b3da9a 100644 --- a/popt.c +++ b/popt.c @@ -230,13 +230,6 @@ static void execCommand(poptContext con) { argv[pos++] = NULL; -#ifdef HAVE_SETRESUID - setresuid(getuid(), getuid(),-1); -#endif -#ifdef HAVE_SETREUID - setreuid(getuid(), getuid()); /*hlauer: not portable to hpux9.01 */ -#endif - execvp(argv[0], argv); } -- 2.39.5