diff lib-src/ntlib.c @ 107912:10464087f606

Add stubs for Windows, required after CVE-2010-0825 change. * ntlib.c (getgid, getegid, setegid): New stubs. * ntlib.h (getgid, getegid, setegid): Declare them.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 03 Apr 2010 04:16:16 +0200
parents 1d1d5d9bd884
children d12162869c07 376148b31b5e
line wrap: on
line diff
--- a/lib-src/ntlib.c	Fri Apr 02 20:42:10 2010 -0400
+++ b/lib-src/ntlib.c	Sat Apr 03 04:16:16 2010 +0200
@@ -125,12 +125,30 @@
   return 0;
 }
 
+unsigned
+getgid ()
+{
+  return 0;
+}
+
+unsigned
+getegid ()
+{
+  return 0;
+}
+
 int
 setuid (unsigned uid)
 {
   return 0;
 }
 
+int
+setegid (unsigned gid)
+{
+  return 0;
+}
+
 struct passwd *
 getpwuid (unsigned uid)
 {