[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99817: Add stubs for Windows, requir
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99817: Add stubs for Windows, required after CVE-2010-0825 change. |
Date: |
Sat, 03 Apr 2010 04:23:51 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99817
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Sat 2010-04-03 04:23:51 +0200
message:
Add stubs for Windows, required after CVE-2010-0825 change.
* ntlib.c (getgid, getegid, setegid): New stubs.
* ntlib.h (getgid, getegid, setegid): Declare them.
modified:
lib-src/ChangeLog
lib-src/ntlib.c
lib-src/ntlib.h
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2010-04-03 01:54:24 +0000
+++ b/lib-src/ChangeLog 2010-04-03 02:23:51 +0000
@@ -1,3 +1,9 @@
+2010-04-03 Juanma Barranquero <address@hidden>
+
+ 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 <address@hidden> (tiny change)
* movemail.c (main): Check return values of setuid. Avoid
=== modified file 'lib-src/ntlib.c'
--- a/lib-src/ntlib.c 2010-01-13 08:35:10 +0000
+++ b/lib-src/ntlib.c 2010-04-03 02:23:51 +0000
@@ -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)
{
=== modified file 'lib-src/ntlib.h'
--- a/lib-src/ntlib.h 2010-01-13 08:35:10 +0000
+++ b/lib-src/ntlib.h 2010-04-03 02:23:51 +0000
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99817: Add stubs for Windows, required after CVE-2010-0825 change.,
Juanma Barranquero <=