File: 30_bts-532803_FTBFS_gcc43.patch

package info (click to toggle)
mp3val 0.1.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 244 kB
  • sloc: cpp: 1,657; makefile: 19
file content (13 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Author: Fabrice Coutadeur <fabricesp@ubuntu.com>
Description: fix a FTBFS with gcc 4.4 because of missing third argument to open call
--- mp3val.orig/crossapi.cpp
+++ mp3val/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,0644);
 	if(od==-1) {
 		close(id);
 		return 0;