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: Fri, 13 Dec 2013 17:51:34 -0500 Message-ID: References: <87vbysv8av.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 1386975122 5518 80.91.229.3 (13 Dec 2013 22:52:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Dec 2013 22:52:02 +0000 (UTC) Cc: 16133@debbugs.gnu.org To: Artem Chuprina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 13 23:52:08 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 1VrbaY-0003IV-TR for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 23:52:07 +0100 Original-Received: from localhost ([::1]:45029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrbaY-0001Dk-Jv for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 17:52:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrbaV-0001De-DX for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 17:52:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrbaU-0000zx-Gp for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 17:52:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrbaU-0000zt-DZ for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 17:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VrbaT-0002NL-VM for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 17:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2013 22:52: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: Original-Received: via spool by 16133-submit@debbugs.gnu.org id=B16133.13869750989100 (code B ref 16133); Fri, 13 Dec 2013 22:52:01 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 13 Dec 2013 22:51:38 +0000 Original-Received: from localhost ([127.0.0.1]:48936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrba6-0002Mh-Br for submit@debbugs.gnu.org; Fri, 13 Dec 2013 17:51:38 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:44950) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrba3-0002MY-MT for 16133@debbugs.gnu.org; Fri, 13 Dec 2013 17:51:36 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Vrba2-0006Go-KP; Fri, 13 Dec 2013 17:51:34 -0500 X-Spook: PGP TWA AFSPC Rule Psix Montenegro Mossad SCUD missile X-Ran: m0>>2{&7JC=m;.\OqlD8uBN|@43`%*N-8P&3|w.E7,[v[AYJHNcK6/9p.wiIqO:>t1N;}' X-Hue: blue X-Attribution: GM In-Reply-To: <87vbysv8av.fsf@wizzle.ran.pp.ru> (Artem Chuprina's message of "Fri, 13 Dec 2013 23:51:20 +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:81914 Archived-At: Artem Chuprina wrote: > Having org on ext4 filesystem with 0664 permission on org/work.org, and > c1 on FAT filesystem with file permissions 0075 (in fact, SD card on > Android system, so such strange permissions) I do > > M-: copy-file("org/work.org" "c1/work.org" t) > > and get an error > > Debugger entered--Lisp error: (file-error "Doing chmod" "operation not > permitted" $ I'm not sure this is a bug. The file is copied, but there is an error trying to preserve permissions. Because eval-expression-debug-on-error is non-nil by default, the debugger pops up. Emacs's behaviour seems the same as using cp -a org/work.org c1/work.org on the command-line. "-a" is appropriate because C-h f copy-file says: This function always sets the file modes of the output file to match the input file.