]> err.no Git - pkg-config/commitdiff
* popt.c: Remove code calling setresuid and setreuid, pkg-config
authorTollef Fog Heen <tfheen@err.no>
Mon, 18 Jun 2007 20:09:41 +0000 (22:09 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 18 Jun 2007 20:09:41 +0000 (22:09 +0200)
  should not ever be suid.  Partially addresses Freedesktop #10652

ChangeLog
popt.c

index 8648779c37cf8ce76a44fe254d0c8fa79efb23e4..f1888dc3708d20f9b589e16f504bf9ca08a11470 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
diff --git a/popt.c b/popt.c
index 9dff8ef85e49efe60bb4e6381af736dc36f5efbb..8b3da9afb4404787ed565d453111d59bd8bc60fd 100644 (file)
--- 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);
 }