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#16133: 24.3; copy-file fails on chmod when copying to FAT filesystem Date: Sun, 22 Dec 2013 18:24:29 +0200 Message-ID: <83ioug97lu.fsf@gnu.org> References: <52B62BC3.4050508@cs.ucla.edu> <83ob498s3q.fsf@gnu.org> <52B66414.1090709@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387729515 32427 80.91.229.3 (22 Dec 2013 16:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2013 16:25:15 +0000 (UTC) Cc: ran@lasgalen.net, 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 17:25: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 1VulqA-0004pL-6G for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2013 17:25:18 +0100 Original-Received: from localhost ([::1]:58374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vulq9-0000GV-Nw for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2013 11:25:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vulpz-000055-UN for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 11:25:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vulpv-0007VE-3T for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 11:25:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vulpv-0007Uj-0R for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 11:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vulpt-0000tQ-V0 for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2013 11:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2013 16:25: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: confirmed Original-Received: via spool by 16133-submit@debbugs.gnu.org id=B16133.13877294833399 (code B ref 16133); Sun, 22 Dec 2013 16:25:01 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 22 Dec 2013 16:24:43 +0000 Original-Received: from localhost ([127.0.0.1]:34774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vulpb-0000sk-7K for submit@debbugs.gnu.org; Sun, 22 Dec 2013 11:24:43 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:57463) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VulpY-0000sa-5s for 16133@debbugs.gnu.org; Sun, 22 Dec 2013 11:24:41 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MY700G00UO5AO00@a-mtaout21.012.net.il> for 16133@debbugs.gnu.org; Sun, 22 Dec 2013 18:24:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MY700FP7UX2Y6C0@a-mtaout21.012.net.il>; Sun, 22 Dec 2013 18:24:38 +0200 (IST) In-reply-to: <52B66414.1090709@cs.ucla.edu> X-012-Sender: halo1@inter.net.il 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:82396 Archived-At: > Date: Sat, 21 Dec 2013 20:01:24 -0800 > From: Paul Eggert > CC: 16133@debbugs.gnu.org, ran@lasgalen.net > > Eli Zaretskii wrote: > > Emacs throws an error, and stops the copy operation, > > even if there are more files to copy. > > copy-file copies just one file, so there can't be any more > files to copy. When GNU 'cp' is acting like copy-file and > is copying just one file, it doesn't do anything more to the > file after fchmod fails -- it simply exits with nonzero status, > which corresponds to Emacs throwing an error. I was referring to the use case described here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16133#14 The 'cp' equivalent of that is when it is invoked to copy more than one file, or copy a directory. In that case, it does not exit on the first fchown error (at least the version I have here doesn't), but instead reports the error and continues. Signaling an error from copy-file makes it inconvenient to write functions that copy many files or entire directories.