[FTBFS] open() needs mode in qfits_memory.c to compile in GCC 4.4

Bug #495422 reported by Alfonso Cepeda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qfits (Debian)
Fix Released
Unknown
qfits (Ubuntu)
Fix Released
Undecided
Morten Kjeldgaard

Bug Description

Binary package hint: qfits

Line 311 of qfits_memory.c has:

swapfd = open(fname, O_RDWR | O_CREAT);

but when O_CREAT parameter exists, the function needs the mode (rights) of the created file.

This prevents package to be built

If this line is changed by:

swapfd = open(fname, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR);

the program compiles.

Tags: ftbfs

Related branches

Revision history for this message
Alfonso Cepeda (cepeda) wrote :

debdiff

Revision history for this message
Alfonso Cepeda (cepeda) wrote :

debdiff

Changed in qfits (Debian):
status: Unknown → New
Morten Kjeldgaard (mok0)
Changed in qfits (Ubuntu):
assignee: nobody → Morten Kjeldgaard (mok0)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qfits - 6.2.0-1ubuntu1

---------------
qfits (6.2.0-1ubuntu1) lucid; urgency=low

  * [FTBFS] open() needs mode if O_CREAT in qfits_memory.c to be build
    in GCC 4.4 (LP: #495422)
 -- Alfonso Cepeda Caballos <email address hidden> Fri, 11 Dec 2009 10:41:43 +0000

Changed in qfits (Ubuntu):
status: New → Fix Released
Changed in qfits (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.