From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artem Chuprina Newsgroups: gmane.emacs.bugs Subject: bug#16133: 24.3; copy-file fails on chmod when copying to FAT filesystem Date: Mon, 23 Dec 2013 00:32:27 +0400 Message-ID: <87y53cfwys.fsf@wizzle.ran.pp.ru> References: <52B62BC3.4050508@cs.ucla.edu> <83ob498s3q.fsf@gnu.org> <52B66414.1090709@cs.ucla.edu> <83ioug97lu.fsf@gnu.org> <52B72356.7000103@cs.ucla.edu> <83eh5491j8.fsf@gnu.org> <52B73578.3070407@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1387744396 19309 80.91.229.3 (22 Dec 2013 20:33:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2013 20:33:16 +0000 (UTC) Cc: 16133@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 22 21:33:21 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 1VupiC-0003yU-PV for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2013 21:33:20 +0100 Original-Received: from localhost ([::1]:59179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VupiC-00059Z-5n for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2013 15:33:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vupi2-00059H-5F for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 15:33:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vuphu-0005Qy-Ro for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 15:33:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vuphu-0005Qu-Kl for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 15:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vuphu-0008KD-3z for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 15:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artem Chuprina Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2013 20:33:02 +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: confirmed Original-Received: via spool by 16133-submit@debbugs.gnu.org id=B16133.138774436231966 (code B ref 16133); Sun, 22 Dec 2013 20:33:02 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 22 Dec 2013 20:32:42 +0000 Original-Received: from localhost ([127.0.0.1]:34905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vupha-0008JW-0d for submit@debbugs.gnu.org; Sun, 22 Dec 2013 15:32:42 -0500 Original-Received: from minas.ran.pp.ru ([178.63.209.8]:45378) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuphX-0008JL-3b for 16133@debbugs.gnu.org; Sun, 22 Dec 2013 15:32:40 -0500 Original-Received: from [188.32.7.67] (helo=wizzle.ran.pp.ru) by minas.ran.pp.ru with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VuphU-0001fJ-Sf; Sun, 22 Dec 2013 20:32:36 +0000 Original-Received: from ran by wizzle.ran.pp.ru with local (Exim 4.80) (envelope-from ) id 1VuphO-0002Vr-AX; Mon, 23 Dec 2013 00:32:30 +0400 In-Reply-To: <52B73578.3070407@cs.ucla.edu> (Paul Eggert's message of "Sun, 22 Dec 2013 10:54:48 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) 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:82405 Archived-At: Paul Eggert -> Eli Zaretskii @ Sun, 22 Dec 2013 10:54:48 -0800: PE> I would favor changing the specification of copy-file, PE> so that it doesn't copy the permissions PE> unless its 6th argument is non-nil. We could change PE> the name of the 6th argument to PRESERVE-PERMISSIONS. PE> The 6th argument already governs how permissions are PE> preserved, so this would be a reasonable change. I don't PE> think it'd hurt existing applications, since the default PE> permissions when creating a file would be the same as PE> it is now -- the only change would be that copy-file PE> wouldn't attempt to change the permissions of an already-existing PE> file unless PRESERVE-PERMISSIONS is non-nil. I'd prefer copy-file behavior just like cp's. That is, ever try to preserve permissions, owner, ACLs etc, but by default throw an error only if file CONTENT is not copied successfully. Metainformation copy failures should throw error on explicit request. Probably, it would be reasonable to have not several parameters, but one parameters THROW-ERROR-ON(-META) with a list of flags, like '(acl owner times), t for all, nil (default) for none. Also like cp, it should NOT try to copy times by default, only on explicit request. But also, request to copy times in NOT yet a reason to throw error. For backward compatibility, it has sense to keep PRESERVE-UID-GID, but also for backward compatibility, with BACKWARD-COMPATIBLE behavior (that is, NOT throw an exception, AGGRHH!). If we don't bother backward compatibility, it would be better to remove PRESERVE-UID-GID entirely, replacing it with THROW-ERROR-ON.