Mercurial > emacs
changeset 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 | 14f1ff916f19 |
children | 4a06b9752df5 |
files | lib-src/ChangeLog lib-src/ntlib.c lib-src/ntlib.h |
diffstat | 3 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Fri Apr 02 20:42:10 2010 -0400 +++ b/lib-src/ChangeLog Sat Apr 03 04:16:16 2010 +0200 @@ -1,3 +1,9 @@ +2010-04-03 Juanma Barranquero <lekktu@gmail.com> + + 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 <dan.j.rosenberg@gmail.com> (tiny change) * movemail.c (main): Check return values of setuid. Avoid
--- 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) {
--- a/lib-src/ntlib.h Fri Apr 02 20:42:10 2010 -0400 +++ b/lib-src/ntlib.h Sat Apr 03 04:16:16 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);