bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12632: file permissions checking mishandled when setuid


From: Paul Eggert
Subject: bug#12632: file permissions checking mishandled when setuid
Date: Sun, 14 Oct 2012 23:17:16 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1

On 10/14/2012 01:53 PM, Eli Zaretskii wrote:
> That sounds like a very weak reason to switch to a non-portable API

Since the main objection here seems to be using the non-portable
function euidaccess, I changed the patch to use faccessat instead.
faccessat, unlike euidaccess, is standardized by POSIX; it's a tad
more-complicated to use but it is standard and it's no doubt
a better solution in the long run anyway.  The patch
uses the Gnulib substitute for faccessat for obsolescent POSIXish
hosts that lack faccessat.  For Windows the patch simply reworks the
existing substitute for 'access' so that it implements faccessat instead.

Revised patch attached.

Attachment: faccessat.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]