From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13226: 24.3.50; set-file-acl on MS Windows shall check ACL string format Date: Wed, 19 Dec 2012 18:33:22 +0200 Message-ID: <83txringrx.fsf@gnu.org> References: <877goexm9e.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1355934850 8196 80.91.229.3 (19 Dec 2012 16:34:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 16:34:10 +0000 (UTC) Cc: michael.albinus@gmx.de, 13226@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 17:34:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TlMb5-00064f-43 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 17:34:19 +0100 Original-Received: from localhost ([::1]:50803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlMar-0007D0-Gu for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 11:34:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlMan-00075L-Ha for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:34:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlMam-0000Fv-1O for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:34:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlMal-0000Fq-V0 for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:33:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TlMao-0008B0-7s for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 11:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Dec 2012 16:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13226 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13226-submit@debbugs.gnu.org id=B13226.135593479231373 (code B ref 13226); Wed, 19 Dec 2012 16:34:02 +0000 Original-Received: (at 13226) by debbugs.gnu.org; 19 Dec 2012 16:33:12 +0000 Original-Received: from localhost ([127.0.0.1]:51019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlMa0-00089y-0d for submit@debbugs.gnu.org; Wed, 19 Dec 2012 11:33:12 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:61164) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlMZy-00089r-Mc for 13226@debbugs.gnu.org; Wed, 19 Dec 2012 11:33:11 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MFA00100DV9YG00@a-mtaout21.012.net.il> for 13226@debbugs.gnu.org; Wed, 19 Dec 2012 18:33:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFA001K4DZ5T260@a-mtaout21.012.net.il>; Wed, 19 Dec 2012 18:33:06 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68746 Archived-At: > From: Stefan Monnier > Date: Wed, 19 Dec 2012 09:32:36 -0500 > Cc: 13226@debbugs.gnu.org > > > (file-acl "~/.emacs") > > > "O:S-1-5-21-3955186872-1115707380-970145838-1000G:S-1-5-21-3955186872-1115707380-970145838-513D:(A;;FA;;;SY)(A;;FA;;;BA)(A;;FA;;;S-1-5-21-3955186872-1115707380-970145838-1000)" > > This looks thoroughly unportable. It is explicitly documented as platform-specific in the ELisp manual. Once again, the original design had a modest goal: allow to copy these attributes from file to file. Are you sure we want to extend that to a much more complex system which would allow a Lisp program to interpret those strings in a platform-independent manner? > We should probably change file-acl so that its return value is tagged > with the "acl-system" it uses. It could be a prefix like "w32:". As I wrote elsewhere, I don't see the rationale. > Then we can change set-file-acl so that it can either try to perform > conversion or signal a proper error that copy-file can handle. copy-file the primitive is not affected, it already does TRT with this scenario. copy-file handler for remote files should simply catch and ignore the errors, like the primitive does.