Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374869 - app-admin/logrotate-3.8.0 (logrotate-3.8.0-atomic-create.patch): usage of mkostemp breaks build on FreeBSD
Summary: app-admin/logrotate-3.8.0 (logrotate-3.8.0-atomic-create.patch): usage of mko...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 16:40 UTC by Alexis Ballier
Modified: 2011-07-18 17:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2011-07-11 16:40:59 UTC
please replace mkostemp by mktemp + open if you want to handle the flags or, like in the patch for 3.7.9 just use mkstemp

mkostemp is a gnu addition, non posix, and not available on FreeBSD.
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2011-07-12 17:38:05 UTC
mkstemp is not acceptable, since there was a specific change (O_NOFOLLOW) to fix a CVE.  Could someone with freebsd whip up a patch that uses the correct open semantics?  I don't have access to freebsd.
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2011-07-18 17:58:45 UTC
Okay, I just went and changed it.  If it still fails, please re-open (preferably with a patch).