[Bug 495448] [NEW] [FTBFS] open() needs mode in backend.c to compile in GCC 4.4

Alfonso Cepeda cepeda at gmail.com
Fri Dec 11 12:06:13 UTC 2009


Public bug reported:

Binary package hint: gpe-shield

Line 406 of backend.c has:

if ((fh = open(LOADRULES_MARK,O_CREAT | O_RDWR | O_TRUNC)) < 0)

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:

if ((fh = open(LOADRULES_MARK,O_CREAT | O_RDWR | O_TRUNC,
S_IRUSR|S_IWUSR)) < 0)

the program compiles.

** Affects: gpe-shield (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs

-- 
 [FTBFS] open() needs mode in backend.c to compile in GCC 4.4
https://bugs.launchpad.net/bugs/495448
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