diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-12-14 05:55:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-16 12:12:18 +0000 |
commit | 54f01ca1174179918828a9b61ebc6c3e62da8e88 (patch) | |
tree | 6f2c6c34b6716962bd12a19cf4c2796f9f17976c /meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch | |
parent | 63bdadccb662fcae52ec9ddb7f6e43b454dd1d1c (diff) | |
download | poky-54f01ca1174179918828a9b61ebc6c3e62da8e88.tar.gz |
systemd: Upgrade to 228
Forward port all patches and format them to be git am'able
Drop patches specific to uclibc's missing features which now
are there in uclibc-ng
(From OE-Core rev: fcaa030fa3c6eb0980cc635b92d6819682cf7742)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch b/meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch deleted file mode 100644 index b8ab7c4e70..0000000000 --- a/meta/recipes-core/systemd/systemd/0007-util-Use-mkostemp-only-if-libc-supports-it.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From f771407d3e0288ca0c06a894194d3ddad69b9a8e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Feb 2015 05:17:05 +0000 | ||
4 | Subject: [PATCH 07/11] util: Use mkostemp only if libc supports it | ||
5 | |||
6 | Upstream-Status: Denied [no desire for uclibc support] | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | src/basic/util.c | 8 ++++++++ | ||
11 | 1 file changed, 8 insertions(+) | ||
12 | |||
13 | diff --git a/src/basic/util.c b/src/basic/util.c | ||
14 | index dc65280..72f4665 100644 | ||
15 | --- a/src/basic/util.c | ||
16 | +++ b/src/basic/util.c | ||
17 | @@ -97,6 +97,8 @@ | ||
18 | #include "def.h" | ||
19 | #include "sparse-endian.h" | ||
20 | |||
21 | +#include "config.h" | ||
22 | + | ||
23 | int saved_argc = 0; | ||
24 | char **saved_argv = NULL; | ||
25 | |||
26 | @@ -6682,7 +6684,13 @@ int mkostemp_safe(char *pattern, int flags) { | ||
27 | |||
28 | u = umask(077); | ||
29 | |||
30 | +#ifdef HAVE_MKOSTEMP | ||
31 | fd = mkostemp(pattern, flags); | ||
32 | +#else | ||
33 | + fd = mkstemp(pattern); | ||
34 | + if (fd >= 0) fcntl(fd, F_SETFD, flags); | ||
35 | +#endif /* HAVE_MKOSTEMP */ | ||
36 | + | ||
37 | if (fd < 0) | ||
38 | return -errno; | ||
39 | |||
40 | -- | ||
41 | 2.1.4 | ||
42 | |||