From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#16133: 24.3; copy-file fails on chmod when copying to FAT filesystem Date: Sat, 14 Dec 2013 22:07:59 +0100 Organization: Linux Private Site Message-ID: <878uvnb0pc.fsf@Rainer.invalid> References: <87vbysv8av.fsf@wizzle.ran.pp.ru> <87ob4jvj45.fsf@wizzle.ran.pp.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387055356 15760 80.91.229.3 (14 Dec 2013 21:09:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2013 21:09:16 +0000 (UTC) To: 16133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 14 22:09:22 2013 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 1VrwSf-00056E-8R for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 22:09:21 +0100 Original-Received: from localhost ([::1]:48605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwSe-0001iK-QW for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 16:09:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwSW-0001XG-3M for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:09:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrwSM-0005hB-8q for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:09:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwSM-0005h5-5C for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VrwSL-0000mG-No for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:09:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87vbysv8av.fsf@wizzle.ran.pp.ru> Resent-From: Achim Gratz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2013 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13870553142947 (code B ref -1); Sat, 14 Dec 2013 21:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Dec 2013 21:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:50437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrwRt-0000lS-Ds for submit@debbugs.gnu.org; Sat, 14 Dec 2013 16:08:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33081) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrwRq-0000lH-3R for submit@debbugs.gnu.org; Sat, 14 Dec 2013 16:08:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrwRk-0005dE-8B for submit@debbugs.gnu.org; Sat, 14 Dec 2013 16:08:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwRk-0005dA-5S for submit@debbugs.gnu.org; Sat, 14 Dec 2013 16:08:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwRe-0001LT-Ml for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:08:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrwRZ-0005cB-7P for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:08:18 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrwRZ-0005c4-1E for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 16:08:13 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VrwRX-0004gV-SU for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 22:08:11 +0100 Original-Received: from pd9eb1bbd.dip0.t-ipconnect.de ([217.235.27.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Dec 2013 22:08:11 +0100 Original-Received: from Stromeko by pd9eb1bbd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Dec 2013 22:08:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb1bbd.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:DrgS94T/ydLf42Y0Wc1NMwp2br8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:81989 Archived-At: Glenn Morris writes: > Someone may be relying on the fact that copy-file copies permissions, > and want it it throw an error if it fails: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8306 > > Others, like you, may not care. If the contract of copy-file is that it always copies permissions, then it should throw an error and not silently corrupt the permissions. That makes it useless on filesystems without permissions and where/when the user has insufficient rights to install permissions which is possible when ACL are in effect, so the function would need to have an extra argument to ignore the error or not try to change permissions at all. > Since copy-file has only relatively recently starting giving an error, > maybe the least bad thing would be for it to give a message instead of > an error? In this case an alternative would be that copying permissions is done on a best effort basis and may fail across file systems or in certain other situations without raising an error (although I still think that it should be possible to check for that). > I don't know how we tidy this up for the future though. > Add yet another optional argument "error-if-permissions-fail"? Yuck. How about copy-file-with-permissions (which fails when it can't do what the name says) and copy-file which does best-effort? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada