From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LynX <_LynX@bk.ru> Newsgroups: gmane.emacs.bugs Subject: bug#10284: "Renaming: permission denied" file-error in Windows Date: Wed, 28 Dec 2011 21:53:39 +0200 Message-ID: <4EFB73C3.7070203@bk.ru> References: <4EE3F66D.2050003@bk.ru> <83vcpnllo3.fsf@gnu.org> <4EE46AA1.9010700@cs.ucla.edu> <4EE504C3.3090701@bk.ru> <83obvfkmt6.fsf@gnu.org> <4EE5245E.3090803@bk.ru> <83liqilrs0.fsf@gnu.org> <4EF6D1CE.7020101@bk.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1325135730 13526 80.91.229.12 (29 Dec 2011 05:15:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 05:15:30 +0000 (UTC) To: 10284@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 06:15:25 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rg8Kr-0008RQ-ER for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 06:15:25 +0100 Original-Received: from localhost ([::1]:40361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg8Kq-0007fj-O8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 00:15:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg8Km-0007bH-V1 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 00:15:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rg8Kj-0000Xd-E0 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 00:15:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg8Kj-0000XX-7j for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 00:15:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rg8NQ-0004TB-TM for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 00:18:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: LynX <_LynX@bk.ru> Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2011 05:18:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10284 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 10284-submit@debbugs.gnu.org id=B10284.132513582917074 (code B ref 10284); Thu, 29 Dec 2011 05:18:04 +0000 Original-Received: (at 10284) by debbugs.gnu.org; 29 Dec 2011 05:17:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rg8MT-0004RH-Rl for submit@debbugs.gnu.org; Thu, 29 Dec 2011 00:17:09 -0500 Original-Received: from smtp15.mail.ru ([94.100.176.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <_LynX@bk.ru>) id 1Rfzcj-0006sd-HS for 10284@debbugs.gnu.org; Wed, 28 Dec 2011 14:57:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=HNpUUlwzaj26UPRBDaHry8MLgQJFfAfGjk9mLs9pJ6Y=; b=0UX5FaOQJaGVV2RnHObvqSF4LcIt91kswZAn5ltNNh61iovroFz+Yp/2eOGuSW7D2l6cbnzFwZDTxJX1kJdO48ECSzDOrcbzAfiJF7Nd8+ydOvUvyc021dwsyeZo7fed; Original-Received: from [109.200.244.155] (port=23275) by smtp15.mail.ru with esmtpa (envelope-from <_LynX@bk.ru>) id 1Rfza2-0004sx-Ej for 10284@debbugs.gnu.org; Wed, 28 Dec 2011 23:54:30 +0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: X-Mru-NR: 1 X-Mru-UID: 10796556 X-Spam: Not detected X-Mras: Ok X-Mru-Karma: 0 X-Mailman-Approved-At: Thu, 29 Dec 2011 00:17:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Dec 2011 00:18:04 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:55260 Archived-At: Dear Eli, Thank you for your response. I just want to double check that I understood you right. > This first removes the target, and only then compares the device > numbers. Wouldn't it be better to do it the other way around, at > least when the target is a directory? That way, the target is left > intact if the caller doesn't want to copy over the target, and also > the filesystem is left in the same state as on Posix hosts in this > case, i.e. the contract of `rename' is preserved on all systems. You mean that before setting errno to EXDEV we also need to check that target is a directory (since files are moved correctly)? Regards, LX 25.12.2011 11:40, Eli Zaretskii пишет: >> Date: Sun, 25 Dec 2011 09:33:34 +0200 >> From: LynX<_LynX@bk.ru> >> Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org >> >> Dear Eli, >> >> I've opened a bug report here: >> >> 10284: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10284 >> >> Here is the patch for this issue (it is done for the latest source >> package emacs-23.3b.tar.bz2): > > I've redirected this discussion to the bug tracker, > 10284@debbugs.gnu.org. > > Please respond there, not here. > >