From: Tollef Fog Heen Date: Mon, 18 Jun 2007 20:09:41 +0000 (+0200) Subject: * popt.c: Remove code calling setresuid and setreuid, pkg-config X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=163d95c5b9e9293e04771616b8b2ddfe166033e5;p=pkg-config * popt.c: Remove code calling setresuid and setreuid, pkg-config should not ever be suid. Partially addresses Freedesktop #10652 --- 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); }