On Sun, Apr 24, 2011 at 09:43:35PM -0000, JW wrote:
> /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared 
> with attribute error: open with O_CREAT in second argument needs 3 arguments

Please see https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2

When using open() with O_CREAT, you need to include the file mode as
well.

-- 
Kees Cook
Ubuntu Security Team

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669894

Title:
  fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with
  attribute error: open with O_CREAT in second argument needs 3
  arguments

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to