* popt.c: Remove code calling setresuid and setreuid, pkg-config

should not ever be suid.  Partially addresses Freedesktop #10652
This commit is contained in:
Tollef Fog Heen 2007-06-18 22:09:41 +02:00
parent 1224c055d2
commit 163d95c5b9
2 changed files with 3 additions and 7 deletions

View file

@ -1,5 +1,8 @@
2007-06-18 Tollef Fog Heen <tfheen@err.no>
* 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.

7
popt.c
View file

@ -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);
}