This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mv: permission denied - bug


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]