Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** crossapi.cpp 2009-06-25 16:14:03.000000000 -0400
- --- crossapi_new.cpp 2012-05-29 16:54:22.979071888 -0400
- ***************
- *** 241,247 ****
- //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);
- if(od==-1) {
- close(id);
- return 0;
- --- 241,247 ----
- //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,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
- if(od==-1) {
- close(id);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement