mp3val: fix build
open(2) with O_CREAT requires mode parametet.
This commit is contained in:
parent
21ae14e59a
commit
215a8a765c
1 changed files with 11 additions and 0 deletions
11
srcpkgs/mp3val/patches/fix-open-mode.patch
Normal file
11
srcpkgs/mp3val/patches/fix-open-mode.patch
Normal 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;
|
Loading…
Reference in a new issue