diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch b/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch index 0ea2da321c..99ea5736bc 100644 --- a/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch +++ b/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch | |||
@@ -1,10 +1,10 @@ | |||
1 | Upstream-Status: Denied [no desire for uclibc support] | 1 | Upstream-Status: Denied [no desire for uclibc support] |
2 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 2 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
3 | 3 | ||
4 | Index: systemd-204/src/journal/journal-send.c | 4 | Index: systemd-206/src/journal/journal-send.c |
5 | =================================================================== | 5 | =================================================================== |
6 | --- systemd-204.orig/src/journal/journal-send.c 2013-05-06 12:06:04.000000000 -0700 | 6 | --- systemd-206.orig/src/journal/journal-send.c 2013-07-21 15:43:28.000000000 -0700 |
7 | +++ systemd-204/src/journal/journal-send.c 2013-05-23 11:21:14.500338688 -0700 | 7 | +++ systemd-206/src/journal/journal-send.c 2013-08-21 08:50:50.825892498 -0700 |
8 | @@ -46,6 +46,8 @@ | 8 | @@ -46,6 +46,8 @@ |
9 | memcpy(*_f + 10, _func, _fl); \ | 9 | memcpy(*_f + 10, _func, _fl); \ |
10 | } while(false) | 10 | } while(false) |
@@ -14,7 +14,7 @@ Index: systemd-204/src/journal/journal-send.c | |||
14 | /* We open a single fd, and we'll share it with the current process, | 14 | /* We open a single fd, and we'll share it with the current process, |
15 | * all its threads, and all its subprocesses. This means we need to | 15 | * all its threads, and all its subprocesses. This means we need to |
16 | * initialize it atomically, and need to operate on it atomically | 16 | * initialize it atomically, and need to operate on it atomically |
17 | @@ -312,8 +314,13 @@ | 17 | @@ -311,8 +313,13 @@ |
18 | /* Message doesn't fit... Let's dump the data in a temporary | 18 | /* Message doesn't fit... Let's dump the data in a temporary |
19 | * file and just pass a file descriptor of it to the other | 19 | * file and just pass a file descriptor of it to the other |
20 | * side */ | 20 | * side */ |
@@ -29,20 +29,19 @@ Index: systemd-204/src/journal/journal-send.c | |||
29 | if (buffer_fd < 0) | 29 | if (buffer_fd < 0) |
30 | return -errno; | 30 | return -errno; |
31 | 31 | ||
32 | Index: systemd-204/src/core/manager.c | 32 | Index: systemd-206/src/core/manager.c |
33 | =================================================================== | 33 | =================================================================== |
34 | --- systemd-204.orig/src/core/manager.c 2013-04-25 17:53:56.000000000 -0700 | 34 | --- systemd-206.orig/src/core/manager.c 2013-07-21 15:43:28.000000000 -0700 |
35 | +++ systemd-204/src/core/manager.c 2013-05-23 11:23:15.864340878 -0700 | 35 | +++ systemd-206/src/core/manager.c 2013-08-21 08:51:35.209893331 -0700 |
36 | @@ -72,6 +72,8 @@ | 36 | @@ -71,6 +71,7 @@ |
37 | #include "audit-fd.h" | 37 | #include "audit-fd.h" |
38 | #include "efivars.h" | ||
38 | #include "env-util.h" | 39 | #include "env-util.h" |
39 | |||
40 | +#include "config.h" | 40 | +#include "config.h" |
41 | + | ||
42 | /* As soon as 16 units are in our GC queue, make sure to run a gc sweep */ | ||
43 | #define GC_QUEUE_ENTRIES_MAX 16 | ||
44 | 41 | ||
45 | @@ -1973,7 +1975,12 @@ | 42 | /* As soon as 5s passed since a unit was added to our GC queue, make sure to run a gc sweep */ |
43 | #define GC_QUEUE_USEC_MAX (10*USEC_PER_SEC) | ||
44 | @@ -2058,7 +2059,12 @@ | ||
46 | return -ENOMEM; | 45 | return -ENOMEM; |
47 | 46 | ||
48 | RUN_WITH_UMASK(0077) { | 47 | RUN_WITH_UMASK(0077) { |
@@ -55,10 +54,10 @@ Index: systemd-204/src/core/manager.c | |||
55 | } | 54 | } |
56 | 55 | ||
57 | if (fd < 0) { | 56 | if (fd < 0) { |
58 | Index: systemd-204/src/shared/util.c | 57 | Index: systemd-206/src/shared/util.c |
59 | =================================================================== | 58 | =================================================================== |
60 | --- systemd-204.orig/src/shared/util.c 2013-05-07 12:07:22.000000000 -0700 | 59 | --- systemd-206.orig/src/shared/util.c 2013-07-21 15:43:28.000000000 -0700 |
61 | +++ systemd-204/src/shared/util.c 2013-05-23 11:19:35.028336822 -0700 | 60 | +++ systemd-206/src/shared/util.c 2013-08-21 08:50:50.829892498 -0700 |
62 | @@ -74,6 +74,8 @@ | 61 | @@ -74,6 +74,8 @@ |
63 | #include "env-util.h" | 62 | #include "env-util.h" |
64 | #include "fileio.h" | 63 | #include "fileio.h" |
@@ -68,7 +67,7 @@ Index: systemd-204/src/shared/util.c | |||
68 | int saved_argc = 0; | 67 | int saved_argc = 0; |
69 | char **saved_argv = NULL; | 68 | char **saved_argv = NULL; |
70 | 69 | ||
71 | @@ -3921,7 +3923,12 @@ | 70 | @@ -3980,7 +3982,12 @@ |
72 | t[k] = '.'; | 71 | t[k] = '.'; |
73 | stpcpy(stpcpy(t+k+1, fn), "XXXXXX"); | 72 | stpcpy(stpcpy(t+k+1, fn), "XXXXXX"); |
74 | 73 | ||
@@ -81,10 +80,10 @@ Index: systemd-204/src/shared/util.c | |||
81 | if (fd < 0) { | 80 | if (fd < 0) { |
82 | free(t); | 81 | free(t); |
83 | return -errno; | 82 | return -errno; |
84 | Index: systemd-204/src/shared/ask-password-api.c | 83 | Index: systemd-206/src/shared/ask-password-api.c |
85 | =================================================================== | 84 | =================================================================== |
86 | --- systemd-204.orig/src/shared/ask-password-api.c 2013-04-08 08:26:34.000000000 -0700 | 85 | --- systemd-206.orig/src/shared/ask-password-api.c 2013-07-21 15:43:28.000000000 -0700 |
87 | +++ systemd-204/src/shared/ask-password-api.c 2013-05-23 11:24:43.456342451 -0700 | 86 | +++ systemd-206/src/shared/ask-password-api.c 2013-08-21 08:50:50.829892498 -0700 |
88 | @@ -37,6 +37,8 @@ | 87 | @@ -37,6 +37,8 @@ |
89 | 88 | ||
90 | #include "ask-password-api.h" | 89 | #include "ask-password-api.h" |
@@ -107,11 +106,11 @@ Index: systemd-204/src/shared/ask-password-api.c | |||
107 | } | 106 | } |
108 | 107 | ||
109 | if (fd < 0) { | 108 | if (fd < 0) { |
110 | Index: systemd-204/src/journal/journalctl.c | 109 | Index: systemd-206/src/journal/journalctl.c |
111 | =================================================================== | 110 | =================================================================== |
112 | --- systemd-204.orig/src/journal/journalctl.c 2013-05-07 12:07:22.000000000 -0700 | 111 | --- systemd-206.orig/src/journal/journalctl.c 2013-07-21 15:43:28.000000000 -0700 |
113 | +++ systemd-204/src/journal/journalctl.c 2013-05-23 11:19:35.028336822 -0700 | 112 | +++ systemd-206/src/journal/journalctl.c 2013-08-21 08:50:50.833892498 -0700 |
114 | @@ -755,7 +755,13 @@ | 113 | @@ -1005,7 +1005,13 @@ |
115 | n /= arg_interval; | 114 | n /= arg_interval; |
116 | 115 | ||
117 | close_nointr_nofail(fd); | 116 | close_nointr_nofail(fd); |
@@ -125,11 +124,11 @@ Index: systemd-204/src/journal/journalctl.c | |||
125 | if (fd < 0) { | 124 | if (fd < 0) { |
126 | log_error("Failed to open %s: %m", k); | 125 | log_error("Failed to open %s: %m", k); |
127 | r = -errno; | 126 | r = -errno; |
128 | Index: systemd-204/src/journal/journal-verify.c | 127 | Index: systemd-206/src/journal/journal-verify.c |
129 | =================================================================== | 128 | =================================================================== |
130 | --- systemd-204.orig/src/journal/journal-verify.c 2012-11-20 13:42:23.000000000 -0800 | 129 | --- systemd-206.orig/src/journal/journal-verify.c 2013-07-21 15:43:28.000000000 -0700 |
131 | +++ systemd-204/src/journal/journal-verify.c 2013-05-23 11:19:35.032336822 -0700 | 130 | +++ systemd-206/src/journal/journal-verify.c 2013-08-21 08:50:50.833892498 -0700 |
132 | @@ -700,8 +700,12 @@ | 131 | @@ -811,8 +811,12 @@ |
133 | #endif | 132 | #endif |
134 | } else if (f->seal) | 133 | } else if (f->seal) |
135 | return -ENOKEY; | 134 | return -ENOKEY; |
@@ -143,7 +142,7 @@ Index: systemd-204/src/journal/journal-verify.c | |||
143 | if (data_fd < 0) { | 142 | if (data_fd < 0) { |
144 | log_error("Failed to create data file: %m"); | 143 | log_error("Failed to create data file: %m"); |
145 | r = -errno; | 144 | r = -errno; |
146 | @@ -709,7 +713,12 @@ | 145 | @@ -820,7 +824,12 @@ |
147 | } | 146 | } |
148 | unlink(data_path); | 147 | unlink(data_path); |
149 | 148 | ||
@@ -156,7 +155,7 @@ Index: systemd-204/src/journal/journal-verify.c | |||
156 | if (entry_fd < 0) { | 155 | if (entry_fd < 0) { |
157 | log_error("Failed to create entry file: %m"); | 156 | log_error("Failed to create entry file: %m"); |
158 | r = -errno; | 157 | r = -errno; |
159 | @@ -717,7 +726,12 @@ | 158 | @@ -828,7 +837,12 @@ |
160 | } | 159 | } |
161 | unlink(entry_path); | 160 | unlink(entry_path); |
162 | 161 | ||