From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16133: 24.3; copy-file fails on chmod when copying to FAT filesystem Date: Sat, 14 Dec 2013 15:19:33 -0500 Message-ID: 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; charset=us-ascii X-Trace: ger.gmane.org 1387052412 19148 80.91.229.3 (14 Dec 2013 20:20:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2013 20:20:12 +0000 (UTC) Cc: Paul Eggert , 16133@debbugs.gnu.org To: Artem Chuprina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 14 21:20:17 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 1Vrvh7-0002sT-EA for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 21:20:13 +0100 Original-Received: from localhost ([::1]:48498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrvh6-0005rq-Py for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 15:20:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrvh2-0005qL-SY for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 15:20:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vrvgz-0000xz-3G for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 15:20:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrvgz-0000xm-0W for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 15:20:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vrvgy-0006eE-3F for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 15:20:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2013 20:20:03 +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: Original-Received: via spool by 16133-submit@debbugs.gnu.org id=B16133.138705237625481 (code B ref 16133); Sat, 14 Dec 2013 20:20:03 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 14 Dec 2013 20:19:36 +0000 Original-Received: from localhost ([127.0.0.1]:50357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrvgV-0006cv-Qj for submit@debbugs.gnu.org; Sat, 14 Dec 2013 15:19:36 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35650) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrvgU-0006cm-8U for 16133@debbugs.gnu.org; Sat, 14 Dec 2013 15:19:34 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VrvgT-00032E-5U; Sat, 14 Dec 2013 15:19:33 -0500 X-Spook: interception beanpole SRI Yukon smuggle corporate X-Ran: b@=@WM~V-O-..gYc~BY5qUN)1xZgG~J>ffCQ^'5gfch*z2ko0sRgN>|)f&9`8ZBX"&re[% X-Hue: red X-Attribution: GM In-Reply-To: <87ob4jvj45.fsf@wizzle.ran.pp.ru> (Artem Chuprina's message of "Sat, 14 Dec 2013 14:10:02 +0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:81977 Archived-At: I think you are right that it is a problem. I think the problem was in documenting copy-file to always copy permissions in the first place. But I imagine it is far too late to change that. Not sure what the right thing to do is here... 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. 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? I don't know how we tidy this up for the future though. Add yet another optional argument "error-if-permissions-fail"? Yuck.