blob: 499e232723875080a14e0dabb6f1e972cdef45b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/crossapi.cpp
+++ b/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;
|