blob: be40704b5f1d4b505f3e8da01e843a2b2e5400d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- mp3val-0.1.8-src/crossapi.cpp
+++ mp3val-0.1.8-src/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);
if(od==-1) {
close(id);
return 0;
@@ -279,7 +279,7 @@
if(create) flags|=(O_CREAT|O_TRUNC);
if(write) flags|=O_WRONLY;
else flags|=O_RDONLY;
- return open(szFileName,flags);
+ return open(szFileName,flags, S_IRUSR|S_IWUSR);
}
int CrossAPI_SetFilePointer(int iHandle,int iPointer,bool bFromCurrent) {
|