kumquat-buildroot/package/util-linux
Romain Naour a5a4b38c6a util-linux: add a check for mkostemp()
mkostemp() is missing with older version of uClibc (uClibc <= 0.9.33).
So, we need to check if mkostemp() is available.
If not, we use a wrapper function based on mkstemp() to implement it.

Since util-linux v2.23, mkostemp() is called with O_CLOEXEC flag.
If we use a define to mkstemp() to implement mkostemp(), flags will be
discared.
mkstemp() will pass O_RDWR|O_CREAT|O_EXCL, but not O_CLOEXEC, which
means that the file descriptor will no longer be closed automatically
upon exec().

To avoid to discard the flags, we add a call to fcntl() to set O_CLOEXEC
flag just after mkstemp().

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-04-08 14:06:54 +02:00
..
Config.in
Config.in.host
login.pam
su.pam
util-linux-001-sscanf-no-ms-as.patch util-linux: bump version to 2.24.1 2014-04-03 20:22:31 +02:00
util-linux-002-program-invocation-short-name.patch util-linux: bump version to 2.24.1 2014-04-03 20:22:31 +02:00
util-linux-003-unshare-include-libmount.h.patch util-linux: unshare: include libmount.h to provide missing MS_* defines 2014-04-06 14:10:24 +02:00
util-linux-004-c.h-define-mkostemp-for-older-version-of-uClibc.patch util-linux: add a check for mkostemp() 2014-04-08 14:06:54 +02:00
util-linux.mk util-linux: bump version to 2.24.1 2014-04-03 20:22:31 +02:00