delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/27/22:58:12

X-Spam-Check-By: sourceware.org
Message-ID: <44A1F02F.2030804@cygwin.com>
Date: Tue, 27 Jun 2006 22:57:51 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: mv: permission denied - bug
References: <083ED85235915A4AAE91081E3CC6148702CA83 AT ihbexc1 DOT inconso DOT de>
In-Reply-To: <083ED85235915A4AAE91081E3CC6148702CA83@ihbexc1.inconso.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hofmann Kai wrote:
> Hello,
> 
> I run some linux scripts I used from time to time now under cygwin,
> So I found a problem that has never been appeared under Linux.
> 
> The scripts I use are included.
> Difftest.sh is the script that will be started by the user.
> It will first update some repositories and then run "finds" over them to
> Compress subversion/cvs keywords within ascii files.
> After this diff will be run.
> 
> The problem is now that some (of thousands) files will produce the following error message:
> 
> Mv: cannot create regular file '/filename/': Permission denied
> 
> Interesting now is that the mentioned file has been removed!
> 
> So what I am assuming is, that during the mv the destination file has been removed, but then mv can not move over the temporary file created by sed - for unknown reasons.
> So it might be a timing problem, or that sed has not closed the temp file correctly.
> The subversion thing is not required - also the diff could be removed from the file. For testing you need a larger number of files.


If the name of the file is actually '/filename/', then I believe you have a
problem with this file name itself.  It would be interpreted as a directory.
You may want to look into why this is happening.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019