Date: Fri, 10 Jul 1998 19:11:27 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: Bruce Evans <bde@zeta.org.au> Cc: cvs-committers@FreeBSD.ORG, ghelmer@scl.ameslab.gov, imp@village.org, roberto@keltia.freenix.fr Subject: Re: cvs commit: src/usr.bin/msgs msgs.c Message-ID: <15588.900123087@time.cdrom.com> In-Reply-To: Your message of "Sat, 11 Jul 1998 12:03:48 %2B1000." <199807110203.MAA02791@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Gosh, and I thought it was only sync(1) that had to be done three times in a row by tradition. :) - Jordan > >> Well, it is innocuous, except it reduces portabilty (seteuid() isn't in > >> POSIX.1). Here is an attempt at a portable version: > >> > >> uid = getuid(); > >> (void)setuid(uid); > >> (void)setuid(uid); > > > >I never knew that setuid() was "sticky" - what happens if you call it > >a 3rd time? :-) > > It depends on how bizarre "appropriate privilege" is and whether it > changes between the second and third calls. > > Bruce 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?15588.900123087>