From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v2] POSIX ACL support Date: Fri, 07 Dec 2012 11:32:19 +0200 Message-ID: <83fw3inr6k.fsf@gnu.org> References: <87zk1wxlto.fsf@silenus.orebokech.com> <83boe9r1lw.fsf@gnu.org> <87zk1rm0b9.fsf@silenus.orebokech.com> <87d2ym1dhe.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1354872773 7042 80.91.229.3 (7 Dec 2012 09:32:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 09:32:53 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 07 10:33:03 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TguIo-000728-Gf for ged-emacs-devel@m.gmane.org; Fri, 07 Dec 2012 10:33:02 +0100 Original-Received: from localhost ([::1]:39740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TguIb-0005yg-Vx for ged-emacs-devel@m.gmane.org; Fri, 07 Dec 2012 04:32:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TguIT-0005xX-TJ for emacs-devel@gnu.org; Fri, 07 Dec 2012 04:32:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TguIS-0004gm-KE for emacs-devel@gnu.org; Fri, 07 Dec 2012 04:32:41 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:49195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TguIS-0004gX-CC for emacs-devel@gnu.org; Fri, 07 Dec 2012 04:32:40 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MEN00000LZYL600@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 07 Dec 2012 11:32:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEN0006OMIELN10@a-mtaout23.012.net.il>; Fri, 07 Dec 2012 11:32:38 +0200 (IST) In-reply-to: <87d2ym1dhe.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155333 Archived-At: > From: Michael Albinus > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Fri, 07 Dec 2012 09:19:09 +0100 > > Romain Francoise writes: > > > Hi Eli, > > Hi, > > >>> +DEFUN ("file-acl", Ffile_acl, Sfile_acl, 1, 1, 0, > >>> + doc: /* Return ACL entries of file named FILENAME, as a string. > >>> +Return nil if file does not exist or is not accessible, or if Emacs was > >>> +not compiled with ACL support. */) > > > >> The last sentence of the doc string is inaccurate, because remote > >> files are supported even if Emacs was not built with ACL support. > > > > Yes... if there's an implementation of file-acl for the remote handler. > > This bit was inherited from the SELinux functions, which have a similar > > docstring. I'm not sure how to phrase it better, though. > > | Return nil if file does not exist or is not accessible, or if Emacs is > | not able to determine the ACL entries. The latter happens, if Emacs was > | not compiled with ACL support, or a remote file handler returns nil > | ACL entries. */) My take of the last sentence is below: The latter can happen for local files if Emacs was not compiled with ACL support, or for remote files if the file handler returns nil for the file's ACL entries.