# HG changeset patch # User Juanma Barranquero # Date 1270261431 -7200 # Node ID 65405dd90a72f0d98535bf0b2c674aa4d916515a # Parent 18e1800af99727ee14ed6b7a67b40800bc6cc576 Add stubs for Windows, required after CVE-2010-0825 change. * ntlib.c (getgid, getegid, setegid): New stubs. * ntlib.h (getgid, getegid, setegid): Declare them. diff -r 18e1800af997 -r 65405dd90a72 lib-src/ChangeLog --- a/lib-src/ChangeLog Fri Apr 02 21:54:24 2010 -0400 +++ b/lib-src/ChangeLog Sat Apr 03 04:23:51 2010 +0200 @@ -1,3 +1,9 @@ +2010-04-03 Juanma Barranquero + + Add stubs for Windows, required after CVE-2010-0825 change. + * ntlib.c (getgid, getegid, setegid): New stubs. + * ntlib.h (getgid, getegid, setegid): Declare them. + 2010-04-02 Dan Rosenberg (tiny change) * movemail.c (main): Check return values of setuid. Avoid diff -r 18e1800af997 -r 65405dd90a72 lib-src/ntlib.c --- a/lib-src/ntlib.c Fri Apr 02 21:54:24 2010 -0400 +++ b/lib-src/ntlib.c Sat Apr 03 04:23:51 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) { diff -r 18e1800af997 -r 65405dd90a72 lib-src/ntlib.h --- a/lib-src/ntlib.h Fri Apr 02 21:54:24 2010 -0400 +++ b/lib-src/ntlib.h Sat Apr 03 04:23:51 2010 +0200 @@ -36,7 +36,10 @@ char * getlogin (); char * cuserid (char * s); unsigned getuid (); +unsigned getegid (); +unsigned getgid (); int setuid (unsigned uid); +int setegid (unsigned gid); char * getpass (const char * prompt); int fchown (int fd, unsigned uid, unsigned gid);