Package: katoob
Version: 0.5.9.1-1.2
Tags: patch
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/correct_open_call.patch: always pass in a mode when
calling open with O_CREAT, without which the package will fail
to build with gcc 4.4
We thought you might be interested in doing the same.
Index: katoob-0.5.9.1/src/utils.cc
===================================================================
--- katoob-0.5.9.1.orig/src/utils.cc 2010-10-30 15:22:05.000000000 +0200
+++ katoob-0.5.9.1/src/utils.cc 2010-10-30 20:09:12.000000000 +0200
@@ -270,7 +270,7 @@
return false;
}
- ofd = open(f2, O_WRONLY|O_CREAT|O_TRUNC);
+ ofd = open(f2, O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (ofd == -1) {
error = strerror(errno);
close(ifd);