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 05:47:05 +0200 Message-ID: <83ob498s3q.fsf@gnu.org> References: <52B62BC3.4050508@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387684092 10422 80.91.229.3 (22 Dec 2013 03:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2013 03:48:12 +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 04:48: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 1Vua1X-0000vA-4T for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2013 04:48:15 +0100 Original-Received: from localhost ([::1]:56501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vua1W-0007uN-HO for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Dec 2013 22:48:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vua1P-0007uF-IR for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 22:48:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vua1K-0007wY-G6 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 22:48:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vua1K-0007wS-CD for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 22:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vua1J-0000rG-T6 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 22:48:01 -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 03:48: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.13876840423236 (code B ref 16133); Sun, 22 Dec 2013 03:48:01 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 22 Dec 2013 03:47:22 +0000 Original-Received: from localhost ([127.0.0.1]:33851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vua0g-0000q7-9I for submit@debbugs.gnu.org; Sat, 21 Dec 2013 22:47:22 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65149) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vua0b-0000pv-Rc for 16133@debbugs.gnu.org; Sat, 21 Dec 2013 22:47:19 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MY600700VR9SW00@a-mtaout22.012.net.il> for 16133@debbugs.gnu.org; Sun, 22 Dec 2013 05:47:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MY60076UVURM750@a-mtaout22.012.net.il>; Sun, 22 Dec 2013 05:47:16 +0200 (IST) In-reply-to: <52B62BC3.4050508@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:82382 Archived-At: > Date: Sat, 21 Dec 2013 16:01:07 -0800 > From: Paul Eggert > CC: Artem Chuprina , Eli Zaretskii > > > That's what "cp -p" does, FWIW. > > I just checked the source code, and it looks like 'cp -p' > reports an error if fchmod fails It reports an error, but keeps copying the rest of the files. > so trunk Emacs is behaving similarly to GNU cp here. No, it doesn't: Emacs throws an error, and stops the copy operation, even if there are more files to copy. The suggestion was to report an error, but not throw to top level.