Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- crossapi.cpp
- +++ crossapi.cpp
- @@ -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_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
- if(od==-1) {
- close(id);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement