From owner-cvs-all Fri Jul 10 18:26:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA04128 for cvs-all-outgoing; Fri, 10 Jul 1998 18:26:12 -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 SAA04063 for ; Fri, 10 Jul 1998 18:25:48 -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 SAA15437; Fri, 10 Jul 1998 18:25:20 -0700 (PDT) (envelope-from jkh@time.cdrom.com) To: Bruce Evans cc: ghelmer@scl.ameslab.gov, cvs-committers@FreeBSD.ORG, 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 11:14:56 +1000." <199807110114.LAA00069@godzilla.zeta.org.au> Date: Fri, 10 Jul 1998 18:25:20 -0700 Message-ID: <15433.900120320@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > 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? :-) - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message