[Bug 495004] [NEW] [FTBFS] open() needs mode if O_CREAT to be build in GCC 4.4

Alfonso Cepeda cepeda at gmail.com
Thu Dec 10 12:17:15 UTC 2009


Public bug reported:

Binary package hint: udftools

Binary package hint: udftools/pktsetup/pktsetup.c

Line 90 shows:

if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT)) == -1) {

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

This prevents package to be built

If this line is changed by:

if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT, S_IRUSR|S_IWUSR)) ==
-1) {

the program compiles.

** Affects: udftools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs

-- 
[FTBFS] open() needs mode if O_CREAT to be build in GCC 4.4
https://bugs.launchpad.net/bugs/495004
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list