Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260070 - app-admin/watchfolder-0.3.3 __open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
Summary: app-admin/watchfolder-0.3.3 __open_missing_mode' declared with attribute erro...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
URL: http://hardened.gentooexperimental.or...
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2009-02-23 21:44 UTC by Magnus Granberg
Modified: 2009-03-01 23:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Build log of watchfolder-0.3.3 (app-admin_watchfolder-0.3.3.log,4.51 KB, text/plain)
2009-02-23 21:46 UTC, Magnus Granberg
fix for O_CREAT bug in watchd.c (fix_open_mode_2.patch,406 bytes, text/plain)
2009-02-27 23:06 UTC, Magnus Granberg

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Granberg gentoo-dev 2009-02-23 21:44:52 UTC
Compile with GCC 4.3.3 (FORTIFY_SOURCE=2)
man open:
mode specifies the permissions to use in case a new file is created.  This argument must be supplied when O_CREAT is specified in flags;

Reproducible: Always

Steps to Reproduce:
1.Compile tha package with gcc 4.3.3 from portage

Actual Results:  
watchd.c:778: warning: ignoring return value of 'chown', declared with attribute warn_unused_result
In function 'open',
    inlined from 'finalize_logfd' at watchd.c:674:
/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
make: *** [all] Error 1

Expected Results:  
Would compile fine.
Comment 1 Magnus Granberg gentoo-dev 2009-02-23 21:46:00 UTC
Created attachment 182946 [details]
Build log of watchfolder-0.3.3
Comment 2 Magnus Granberg gentoo-dev 2009-02-27 23:06:02 UTC
Created attachment 183423 [details]
fix for O_CREAT bug in watchd.c

Test this patch.
Comment 3 Patrick Lauer gentoo-dev 2009-03-01 23:59:34 UTC
+  01 Mar 2009; Patrick Lauer <>
+  +files/0.3.3-fortify-sources.patch, watchfolder-0.3.3.ebuild:
+  Fix for gcc 4.3.3 / fortify_sources. Patch by Magnus Granberg.