Date: Wed, 6 Jun 2001 19:32:06 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Warner Losh <imp@village.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_prot.c Message-ID: <20010606193206.A55540@sunbay.com> In-Reply-To: <200106061619.f56GJEl00183@billy-club.village.org>; from imp@village.org on Wed, Jun 06, 2001 at 10:19:14AM -0600 References: <200106061358.f56Dw3o13468@freefall.freebsd.org> <200106061619.f56GJEl00183@billy-club.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 06, 2001 at 10:19:14AM -0600, Warner Losh wrote: > In message <200106061358.f56Dw3o13468@freefall.freebsd.org> Ruslan Ermilov writes: > : ru 2001/06/06 06:58:03 PDT > : Modified files: > : sys/kern kern_prot.c > : Log: > : Unbreak setregid(2). > > What was wrong with setregid? > It was a no-op after rwatson's recent ucred changes. You may also want to run the attached program. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="setregid.c" #include <err.h> #include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { if (setregid((gid_t)-1, (gid_t)8) == -1) err(1, "setregid()"); printf("egid=%d\n", getegid()); exit(0); } --4Ckj6UjgE2iN1+kY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010606193206.A55540>