mp3val: fix build

open(2) with O_CREAT requires mode parametet.
This commit is contained in:
Jürgen Buchmüller 2021-01-16 12:21:41 +01:00
parent 21ae14e59a
commit 215a8a765c

View file

@ -0,0 +1,11 @@
--- crossapi.cpp 2009-06-25 22:14:03.000000000 +0200
+++ crossapi.cpp 2021-01-16 12:20:29.220265744 +0100
@@ -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,0666);
if(od==-1) {
close(id);
return 0;