From owner-cvs-all Fri Jul 10 19:11:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA10670 for cvs-all-outgoing; Fri, 10 Jul 1998 19:11:50 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA10663 for ; Fri, 10 Jul 1998 19:11:45 -0700 (PDT) (envelope-from jkh@time.cdrom.com) Received: from time.cdrom.com (jkh@localhost.cdrom.com [127.0.0.1]) by time.cdrom.com (8.8.8/8.8.8) with ESMTP id TAA15592; Fri, 10 Jul 1998 19:11:27 -0700 (PDT) (envelope-from jkh@time.cdrom.com) To: Bruce Evans 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 In-reply-to: Your message of "Sat, 11 Jul 1998 12:03:48 +1000." <199807110203.MAA02791@godzilla.zeta.org.au> Date: Fri, 10 Jul 1998 19:11:27 -0700 Message-ID: <15588.900123087@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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