From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: Re: Bad configure check Date: 26 Apr 2002 15:44:35 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <1019850275.10153.9.camel@space-ghost> References: <1019762483.19662.20.camel@space-ghost> <200204261738.g3QHchK05159@aztec.santafe.edu> <1019849328.1086.7.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1019850684 16015 127.0.0.1 (26 Apr 2002 19:51:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2002 19:51:24 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171Bka-0004AC-00 for ; Fri, 26 Apr 2002 21:51:24 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 171BnN-00018H-00 for ; Fri, 26 Apr 2002 21:54:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171BkZ-0004eY-00; Fri, 26 Apr 2002 15:51:23 -0400 Original-Received: from monk.debian.net ([216.185.54.61] helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171BjQ-0004cV-00 for ; Fri, 26 Apr 2002 15:50:12 -0400 Original-Received: from space-ghost.verbum.private (freedom.cis.ohio-state.edu [164.107.60.183]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id DF1A87400252 for ; Fri, 26 Apr 2002 15:50:11 -0400 (EDT) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id 83BBA806C70; Fri, 26 Apr 2002 15:44:35 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: <1019849328.1086.7.camel@space-ghost> X-Mailer: Evolution/1.0 (Preview Release) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3322 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3322 On Fri, 2002-04-26 at 15:28, Colin Walters wrote: > Hmmm. I suppose we can solve this problem by making update-game-score > itself check whether it's setuid, and then do the right thing > accordingly...I will investigate doing this. Can anyone suggest a portable way to determine whether or not a program is setuid while it's running? My original thought was to compare the return values of getuid() and geteuid(), but it seems this will fail if root runs Emacs.