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: Tue, 24 Dec 2013 14:22:32 +0400 Message-ID: <87eh52h7kn.fsf@wizzle.ran.pp.ru> References: <52B62BC3.4050508@cs.ucla.edu> <83ob498s3q.fsf@gnu.org> <52B66414.1090709@cs.ucla.edu> <87y53czxz5.fsf@wizzle.ran.pp.ru> <52B7377C.3070004@cs.ucla.edu> <8738lkhcen.fsf@wizzle.ran.pp.ru> <52B8CE25.9080803@cs.ucla.edu> <87lhzahh9w.fsf@wizzle.ran.pp.ru> <87mwjq4lk9.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1387880601 17828 80.91.229.3 (24 Dec 2013 10:23:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2013 10:23:21 +0000 (UTC) Cc: Paul Eggert , 16133@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 24 11:23:26 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 1VvP91-00020M-Pj for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2013 11:23:23 +0100 Original-Received: from localhost ([::1]:37315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvP91-0006v2-84 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2013 05:23:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvP8r-0006uu-LT for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 05:23:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvP8h-0000mi-0K for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 05:23:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvP8g-0000me-U6 for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 05:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VvP8g-0007Ry-8Q for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 05:23: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: Tue, 24 Dec 2013 10:23: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 patch Original-Received: via spool by 16133-submit@debbugs.gnu.org id=B16133.138788056628601 (code B ref 16133); Tue, 24 Dec 2013 10:23:02 +0000 Original-Received: (at 16133) by debbugs.gnu.org; 24 Dec 2013 10:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:37808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvP8Q-0007RF-6V for submit@debbugs.gnu.org; Tue, 24 Dec 2013 05:22:46 -0500 Original-Received: from minas.ran.pp.ru ([178.63.209.8]:42062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvP8N-0007R3-Rj for 16133@debbugs.gnu.org; Tue, 24 Dec 2013 05:22:44 -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 1VvP8L-0006L2-IH; Tue, 24 Dec 2013 10:22:41 +0000 Original-Received: from ran by wizzle.ran.pp.ru with local (Exim 4.80) (envelope-from ) id 1VvP8D-0000bb-1M; Tue, 24 Dec 2013 14:22:33 +0400 In-Reply-To: <87mwjq4lk9.fsf@igel.home> (Andreas Schwab's message of "Tue, 24 Dec 2013 10:58:46 +0100") 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:82509 Archived-At: Andreas Schwab -> Artem Chuprina @ Tue, 24 Dec 2013 10:58:46 +0100: >> zsh% cp testfile testfile.copy AS> That's not an existing destination. Well, your correction is right. cp's behavior is more complex than "just try to save permissions". When the target file exists, cp does not try unless explicitly asked to. But when creating file, it does (that is, file's permissions are copied from source, not just left as set by umask).