1. *** crossapi.cpp        2009-06-25 16:14:03.000000000 -0400
  2. --- crossapi_new.cpp    2012-05-29 16:54:22.979071888 -0400
  3. ***************
  4. *** 241,247 ****
  5.   //Moving failed due to different logical drives of source and destination. Let's copy:
  6.         id=open(szOldName,O_RDONLY);
  7.         if(id==-1) return 0;
  8. !       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
  9.         if(od==-1) {
  10.                 close(id);
  11.                 return 0;
  12. --- 241,247 ----
  13.   //Moving failed due to different logical drives of source and destination. Let's copy:
  14.         id=open(szOldName,O_RDONLY);
  15.         if(id==-1) return 0;
  16. !       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
  17.         if(od==-1) {
  18.                 close(id);
  19.                 return 0;