diff -ru a/crossapi.cpp b/crossapi.cpp --- a/crossapi.cpp 2009-06-26 00:14:03.000000000 +0400 +++ b/crossapi.cpp 2022-09-13 20:59:49.646865360 +0300 @@ -241,7 +241,7 @@ //Moving failed due to different logical drives of source and destination. Let's copy: id=open(szOldName,O_RDONLY); if(id==-1) return 0; - od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC); + od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC,S_IWUSR|S_IRGRP); if(od==-1) { close(id); return 0;