summaryrefslogtreecommitdiff
path: root/lib-src/ntlib.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-04-03 04:23:51 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-04-03 04:23:51 +0200
commitb372fceb03fbd2f2ff2e113d1da1a3013766837e (patch)
treead901fdf74d3844ebd74998674b16b33a7718ec5 /lib-src/ntlib.c
parent2912322b80f7db17e3aefd58884056f99f1024e6 (diff)
downloademacs-b372fceb03fbd2f2ff2e113d1da1a3013766837e.tar.gz
Add stubs for Windows, required after CVE-2010-0825 change.
* ntlib.c (getgid, getegid, setegid): New stubs. * ntlib.h (getgid, getegid, setegid): Declare them.
Diffstat (limited to 'lib-src/ntlib.c')
-rw-r--r--lib-src/ntlib.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index ae10caecd22..c815f32d51d 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -125,12 +125,30 @@ getuid ()
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)
{