mv: permission denied - bug

Larry Hall (Cygwin)
Wed Jun 28 03:04:00 GMT 2006

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.
> 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                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list