mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
Add stubs for Windows, required after CVE-2010-0825 change.
* ntlib.c (getgid, getegid, setegid): New stubs. * ntlib.h (getgid, getegid, setegid): Declare them.
This commit is contained in:
parent
2912322b80
commit
b372fceb03
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -36,7 +36,10 @@ int getppid(void);
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user