mv: permission denied - bug

Hofmann Kai KHofmann@inconso.de
Tue Jun 27 10:54:00 GMT 2006


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.


Mit freundlichen Grüssen / With Kind Regards

Dipl.-Inform. Kai Hofmann
Consultant

-- 
inconso AG
Dieselstraße 1-7
61231 Bad Nauheim
Germany

Tel. : +49 (0)6032/348-2413
Fax  : +49 (0)6032/348-100
EMail: khofmann@inconso.de
WWW  : http://www.inconso.de/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 15421 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060627/38a528fa/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convkeyw.sed
Type: application/octet-stream
Size: 437 bytes
Desc: convkeyw.sed
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060627/38a528fa/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: difftest.sh
Type: application/octet-stream
Size: 725 bytes
Desc: difftest.sh
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060627/38a528fa/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convkeyw.sh
Type: application/octet-stream
Size: 166 bytes
Desc: convkeyw.sh
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060627/38a528fa/attachment-0003.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list