From 2ff1f755a23644453a14bb3847a3cde800da61f1 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 28 Jan 2011 12:03:19 -0500 Subject: [PATCH] * lib-src/ntlib.c (setregid): New stub, renamed from setegid. * lib-src/ntlib.h: Update prototype. --- lib-src/ChangeLog | 6 ++++++ lib-src/ntlib.c | 2 +- lib-src/ntlib.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index aa5ae5ba7e6..e03ac55bfea 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,9 @@ +2011-01-28 Chong Yidong + + * ntlib.c (setregid): New stub, renamed from setegid. + + * ntlib.h: Update prototype. + 2011-01-23 Chong Yidong * movemail.c (main): Use setregid instead of setegid, which is diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c index b87475f1c63..4e3b4bad893 100644 --- a/lib-src/ntlib.c +++ b/lib-src/ntlib.c @@ -144,7 +144,7 @@ setuid (unsigned uid) } int -setegid (unsigned gid) +setregid (unsigned rgid, unsigned gid) { return 0; } diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h index adc04e9935b..aee4033ec29 100644 --- a/lib-src/ntlib.h +++ b/lib-src/ntlib.h @@ -39,7 +39,7 @@ unsigned getuid (); unsigned getegid (); unsigned getgid (); int setuid (unsigned uid); -int setegid (unsigned gid); +int setregid (unsigned rgid, unsigned gid); char * getpass (const char * prompt); int fchown (int fd, unsigned uid, unsigned gid); -- 2.11.4.GIT