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: 28 Apr 2002 15:12:46 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <1020021166.28798.121.camel@space-ghost> References: <1019762483.19662.20.camel@space-ghost> <200204261738.g3QHchK05159@aztec.santafe.edu> <1019849328.1086.7.camel@space-ghost> <1019850275.10153.9.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 1020023151 2365 127.0.0.1 (28 Apr 2002 19:45:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2002 19:45:51 +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 171ucJ-0000c2-00 for ; Sun, 28 Apr 2002 21:45:51 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 171ufi-0007my-00 for ; Sun, 28 Apr 2002 21:49:23 +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 171ubn-0003fn-00; Sun, 28 Apr 2002 15:45:19 -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 171uZ0-0003XF-00 for ; Sun, 28 Apr 2002 15:42:26 -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 043B17400267 for ; Sun, 28 Apr 2002 15:42:15 -0400 (EDT) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id 27625835C8F; Sun, 28 Apr 2002 15:12:47 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: X-Mailer: Ximian Evolution 1.0.3 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:3352 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3352 On Fri, 2002-04-26 at 17:07, Andreas Schwab wrote: > Colin Walters writes: > > |> 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. > > Does it? Even root should obey setuid to a different user. And > experiments show that this is the case. Ok, I agree with you. I will commit changes shortly which fix the problem. It turns out these changes make the code cleaner, which makes me happy. Thanks for reporting the problem.