diff options
| author | Juanma Barranquero | 2010-04-03 04:23:51 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-04-03 04:23:51 +0200 |
| commit | b372fceb03fbd2f2ff2e113d1da1a3013766837e (patch) | |
| tree | ad901fdf74d3844ebd74998674b16b33a7718ec5 /lib-src/ntlib.c | |
| parent | 2912322b80f7db17e3aefd58884056f99f1024e6 (diff) | |
| download | emacs-b372fceb03fbd2f2ff2e113d1da1a3013766837e.tar.gz emacs-b372fceb03fbd2f2ff2e113d1da1a3013766837e.zip | |
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.c | 18 |
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 () | |||
| 125 | return 0; | 125 | return 0; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | unsigned | ||
| 129 | getgid () | ||
| 130 | { | ||
| 131 | return 0; | ||
| 132 | } | ||
| 133 | |||
| 134 | unsigned | ||
| 135 | getegid () | ||
| 136 | { | ||
| 137 | return 0; | ||
| 138 | } | ||
| 139 | |||
| 128 | int | 140 | int |
| 129 | setuid (unsigned uid) | 141 | setuid (unsigned uid) |
| 130 | { | 142 | { |
| 131 | return 0; | 143 | return 0; |
| 132 | } | 144 | } |
| 133 | 145 | ||
| 146 | int | ||
| 147 | setegid (unsigned gid) | ||
| 148 | { | ||
| 149 | return 0; | ||
| 150 | } | ||
| 151 | |||
| 134 | struct passwd * | 152 | struct passwd * |
| 135 | getpwuid (unsigned uid) | 153 | getpwuid (unsigned uid) |
| 136 | { | 154 | { |