From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] POSIX ACL support Date: Wed, 21 Nov 2012 17:01:12 +0100 Organization: orebokech dot com Message-ID: <873903lzcn.fsf@silenus.orebokech.com> References: <878v9yr1h1.fsf@silenus.orebokech.com> <87ehjpp9b7.fsf@silenus.orebokech.com> <87mwybm84m.fsf@silenus.orebokech.com> <50ACF4E9.60604@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353513694 26892 80.91.229.3 (21 Nov 2012 16:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 16:01:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 17:01:45 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 1TbCk8-0000pl-QS for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 17:01:40 +0100 Original-Received: from localhost ([::1]:58679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCjy-0003pO-CE for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 11:01:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCjm-0003nH-Vs for emacs-devel@gnu.org; Wed, 21 Nov 2012 11:01:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbCji-0001RX-D9 for emacs-devel@gnu.org; Wed, 21 Nov 2012 11:01:18 -0500 Original-Received: from stringer.orebokech.com ([88.190.240.207]:32966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCji-0001RH-53 for emacs-devel@gnu.org; Wed, 21 Nov 2012 11:01:14 -0500 Original-Received: from silenus.orebokech.com (silenus [192.168.1.4]) by stringer.orebokech.com (Postfix) with ESMTP id A63F418800DC; Wed, 21 Nov 2012 17:01:12 +0100 (CET) Original-Received: by silenus.orebokech.com (Postfix, from userid 1000) id 8D561A02F4; Wed, 21 Nov 2012 17:01:12 +0100 (CET) In-Reply-To: <50ACF4E9.60604@cs.ucla.edu> (Paul Eggert's message of "Wed, 21 Nov 2012 07:36:09 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 88.190.240.207 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:155025 Archived-At: Hi Paul, Paul Eggert writes: > I suggest something that's even simpler at the C level: > an API that simply clones attributes from one file to > another. The two files can be represented by file names > and file descriptors. There's no need to build a runtime > representation in C or Lisp of the metadata. Just copy > the metadata directly, from one file to the other. That's indeed much simpler, but makes it impossible to preserve attributes for files that have special handlers. For example, Tramp currently preserves the SELinux context for remote SSH files by getting it from the local file via the C API and reapplying it remotely using the `chcon' utility. See `tramp-sh-handle-set-file-selinux-context' in tramp-sh.el. Whether or not that is a desirable feature to have is a matter of taste, I suppose...