mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-26 17:48:16 +02:00
* popt.c: Remove code calling setresuid and setreuid, pkg-config
should not ever be suid. Partially addresses Freedesktop #10652
This commit is contained in:
parent
1224c055d2
commit
163d95c5b9
2 changed files with 3 additions and 7 deletions
|
|
@ -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
7
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue