diff options
| -rw-r--r-- | meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch | 110 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd/systemd-pam-fix-msformat.patch | 86 |
2 files changed, 99 insertions, 97 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 fb8443d6f5..0ea2da321c 100644 --- a/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch +++ b/meta/recipes-core/systemd/systemd/systemd-pam-fix-mkostemp.patch | |||
| @@ -1,72 +1,74 @@ | |||
| 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: git/src/journal/journal-send.c | 4 | Index: systemd-204/src/journal/journal-send.c |
| 5 | =================================================================== | 5 | =================================================================== |
| 6 | --- git.orig/src/journal/journal-send.c 2012-09-02 00:10:08.748768268 -0700 | 6 | --- systemd-204.orig/src/journal/journal-send.c 2013-05-06 12:06:04.000000000 -0700 |
| 7 | +++ git/src/journal/journal-send.c 2012-09-02 00:10:10.508768335 -0700 | 7 | +++ systemd-204/src/journal/journal-send.c 2013-05-23 11:21:14.500338688 -0700 |
| 8 | @@ -34,6 +34,8 @@ | 8 | @@ -46,6 +46,8 @@ |
| 9 | 9 | memcpy(*_f + 10, _func, _fl); \ | |
| 10 | #define SNDBUF_SIZE (8*1024*1024) | 10 | } while(false) |
| 11 | 11 | ||
| 12 | +#include "config.h" | 12 | +#include "config.h" |
| 13 | + | 13 | + |
| 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 | @@ -293,7 +295,12 @@ | 17 | @@ -312,8 +314,13 @@ |
| 18 | /* Message doesn't fit... Let's dump the data in a temporary | ||
| 18 | * 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 |
| 19 | * side */ | 20 | * side */ |
| 20 | 21 | - | |
| 21 | +#ifdef HAVE_MKOSTEMP | 22 | +#ifdef HAVE_MKOSTEMP |
| 22 | buffer_fd = mkostemp(path, O_CLOEXEC|O_RDWR); | 23 | buffer_fd = mkostemp(path, O_CLOEXEC|O_RDWR); |
| 23 | +#else | 24 | +#else |
| 24 | + buffer_fd = mkstemp(path); | 25 | + buffer_fd = mkstemp(path); |
| 25 | + if (buffer_fd >= 0) fcntl(buffer_fd, F_SETFD, FD_CLOEXEC); | 26 | + if (buffer_fd >= 0) fcntl(buffer_fd, F_SETFD, FD_CLOEXEC); |
| 26 | +#endif /* HAVE_MKOSTEMP */ | 27 | +#endif /* HAVE_MKOSTEMP */ |
| 27 | if (buffer_fd < 0) { | 28 | + |
| 28 | r = -errno; | 29 | if (buffer_fd < 0) |
| 29 | goto finish; | 30 | return -errno; |
| 30 | Index: git/src/core/manager.c | 31 | |
| 32 | Index: systemd-204/src/core/manager.c | ||
| 31 | =================================================================== | 33 | =================================================================== |
| 32 | --- git.orig/src/core/manager.c 2012-09-02 00:10:08.732768266 -0700 | 34 | --- systemd-204.orig/src/core/manager.c 2013-04-25 17:53:56.000000000 -0700 |
| 33 | +++ git/src/core/manager.c 2012-09-02 00:10:10.512768334 -0700 | 35 | +++ systemd-204/src/core/manager.c 2013-05-23 11:23:15.864340878 -0700 |
| 34 | @@ -67,6 +67,8 @@ | 36 | @@ -72,6 +72,8 @@ |
| 35 | #include "cgroup-util.h" | 37 | #include "audit-fd.h" |
| 36 | #include "path-util.h" | 38 | #include "env-util.h" |
| 37 | 39 | ||
| 38 | +#include "config.h" | 40 | +#include "config.h" |
| 39 | + | 41 | + |
| 40 | /* As soon as 16 units are in our GC queue, make sure to run a gc sweep */ | 42 | /* As soon as 16 units are in our GC queue, make sure to run a gc sweep */ |
| 41 | #define GC_QUEUE_ENTRIES_MAX 16 | 43 | #define GC_QUEUE_ENTRIES_MAX 16 |
| 42 | 44 | ||
| 43 | @@ -1701,7 +1703,12 @@ | 45 | @@ -1973,7 +1975,12 @@ |
| 44 | return -ENOMEM; | 46 | return -ENOMEM; |
| 45 | 47 | ||
| 46 | saved_umask = umask(0077); | 48 | RUN_WITH_UMASK(0077) { |
| 47 | +#ifdef HAVE_MKOSTEMP | 49 | +#ifdef HAVE_MKOSTEMP |
| 48 | fd = mkostemp(path, O_RDWR|O_CLOEXEC); | 50 | fd = mkostemp(path, O_RDWR|O_CLOEXEC); |
| 49 | +#else | 51 | +#else |
| 50 | + fd = mkstemp(path); | 52 | + fd = mkstemp(path); |
| 51 | + if (fd >= 0) fcntl(fd, F_SETFD, FD_CLOEXEC); | 53 | + if (fd >= 0) fcntl(fd, F_SETFD, FD_CLOEXEC); |
| 52 | +#endif /* HAVE_MKOSTEMP */ | 54 | +#endif /* HAVE_MKOSTEMP */ |
| 53 | umask(saved_umask); | 55 | } |
| 54 | 56 | ||
| 55 | if (fd < 0) { | 57 | if (fd < 0) { |
| 56 | Index: git/src/shared/util.c | 58 | Index: systemd-204/src/shared/util.c |
| 57 | =================================================================== | 59 | =================================================================== |
| 58 | --- git.orig/src/shared/util.c 2012-09-02 00:10:08.784768269 -0700 | 60 | --- systemd-204.orig/src/shared/util.c 2013-05-07 12:07:22.000000000 -0700 |
| 59 | +++ git/src/shared/util.c 2012-09-02 00:10:10.512768334 -0700 | 61 | +++ systemd-204/src/shared/util.c 2013-05-23 11:19:35.028336822 -0700 |
| 60 | @@ -68,6 +68,8 @@ | 62 | @@ -74,6 +74,8 @@ |
| 61 | #include "exit-status.h" | 63 | #include "env-util.h" |
| 62 | #include "hashmap.h" | 64 | #include "fileio.h" |
| 63 | 65 | ||
| 64 | +#include "config.h" | 66 | +#include "config.h" |
| 65 | + | 67 | + |
| 66 | int saved_argc = 0; | 68 | int saved_argc = 0; |
| 67 | char **saved_argv = NULL; | 69 | char **saved_argv = NULL; |
| 68 | 70 | ||
| 69 | @@ -4519,7 +4521,12 @@ | 71 | @@ -3921,7 +3923,12 @@ |
| 70 | t[k] = '.'; | 72 | t[k] = '.'; |
| 71 | stpcpy(stpcpy(t+k+1, fn), "XXXXXX"); | 73 | stpcpy(stpcpy(t+k+1, fn), "XXXXXX"); |
| 72 | 74 | ||
| @@ -79,10 +81,10 @@ Index: git/src/shared/util.c | |||
| 79 | if (fd < 0) { | 81 | if (fd < 0) { |
| 80 | free(t); | 82 | free(t); |
| 81 | return -errno; | 83 | return -errno; |
| 82 | Index: git/src/shared/ask-password-api.c | 84 | Index: systemd-204/src/shared/ask-password-api.c |
| 83 | =================================================================== | 85 | =================================================================== |
| 84 | --- git.orig/src/shared/ask-password-api.c 2012-09-02 00:10:08.772768268 -0700 | 86 | --- systemd-204.orig/src/shared/ask-password-api.c 2013-04-08 08:26:34.000000000 -0700 |
| 85 | +++ git/src/shared/ask-password-api.c 2012-09-02 00:10:10.512768334 -0700 | 87 | +++ systemd-204/src/shared/ask-password-api.c 2013-05-23 11:24:43.456342451 -0700 |
| 86 | @@ -37,6 +37,8 @@ | 88 | @@ -37,6 +37,8 @@ |
| 87 | 89 | ||
| 88 | #include "ask-password-api.h" | 90 | #include "ask-password-api.h" |
| @@ -92,24 +94,24 @@ Index: git/src/shared/ask-password-api.c | |||
| 92 | static void backspace_chars(int ttyfd, size_t p) { | 94 | static void backspace_chars(int ttyfd, size_t p) { |
| 93 | 95 | ||
| 94 | if (ttyfd < 0) | 96 | if (ttyfd < 0) |
| 95 | @@ -326,7 +328,12 @@ | 97 | @@ -325,7 +327,12 @@ |
| 96 | mkdir_p_label("/run/systemd/ask-password", 0755); | 98 | mkdir_p_label("/run/systemd/ask-password", 0755); |
| 97 | 99 | ||
| 98 | u = umask(0022); | 100 | RUN_WITH_UMASK(0022) { |
| 99 | +#ifdef HAVE_MKOSTEMP | 101 | +#ifdef HAVE_MKOSTEMP |
| 100 | fd = mkostemp(temp, O_CLOEXEC|O_CREAT|O_WRONLY); | 102 | fd = mkostemp(temp, O_CLOEXEC|O_CREAT|O_WRONLY); |
| 101 | +#else | 103 | +#else |
| 102 | + fd = mkstemp(temp); | 104 | + fd = mkstemp(temp); |
| 103 | + if (fd >= 0) fcntl(fd, F_SETFD, FD_CLOEXEC); | 105 | + if (fd >= 0) fcntl(fd, F_SETFD, FD_CLOEXEC); |
| 104 | +#endif /* HAVE_MKOSTEMP */ | 106 | +#endif /* HAVE_MKOSTEMP */ |
| 105 | umask(u); | 107 | } |
| 106 | 108 | ||
| 107 | if (fd < 0) { | 109 | if (fd < 0) { |
| 108 | Index: git/src/journal/journalctl.c | 110 | Index: systemd-204/src/journal/journalctl.c |
| 109 | =================================================================== | 111 | =================================================================== |
| 110 | --- git.orig/src/journal/journalctl.c 2012-09-02 00:10:08.752768267 -0700 | 112 | --- systemd-204.orig/src/journal/journalctl.c 2013-05-07 12:07:22.000000000 -0700 |
| 111 | +++ git/src/journal/journalctl.c 2012-09-02 00:18:41.928787779 -0700 | 113 | +++ systemd-204/src/journal/journalctl.c 2013-05-23 11:19:35.028336822 -0700 |
| 112 | @@ -540,7 +540,13 @@ | 114 | @@ -755,7 +755,13 @@ |
| 113 | n /= arg_interval; | 115 | n /= arg_interval; |
| 114 | 116 | ||
| 115 | close_nointr_nofail(fd); | 117 | close_nointr_nofail(fd); |
| @@ -123,11 +125,11 @@ Index: git/src/journal/journalctl.c | |||
| 123 | if (fd < 0) { | 125 | if (fd < 0) { |
| 124 | log_error("Failed to open %s: %m", k); | 126 | log_error("Failed to open %s: %m", k); |
| 125 | r = -errno; | 127 | r = -errno; |
| 126 | Index: git/src/journal/journal-verify.c | 128 | Index: systemd-204/src/journal/journal-verify.c |
| 127 | =================================================================== | 129 | =================================================================== |
| 128 | --- git.orig/src/journal/journal-verify.c 2012-09-02 00:10:08.752768267 -0700 | 130 | --- systemd-204.orig/src/journal/journal-verify.c 2012-11-20 13:42:23.000000000 -0800 |
| 129 | +++ git/src/journal/journal-verify.c 2012-09-02 00:24:10.268800268 -0700 | 131 | +++ systemd-204/src/journal/journal-verify.c 2013-05-23 11:19:35.032336822 -0700 |
| 130 | @@ -693,8 +693,12 @@ | 132 | @@ -700,8 +700,12 @@ |
| 131 | #endif | 133 | #endif |
| 132 | } else if (f->seal) | 134 | } else if (f->seal) |
| 133 | return -ENOKEY; | 135 | return -ENOKEY; |
| @@ -141,7 +143,7 @@ Index: git/src/journal/journal-verify.c | |||
| 141 | if (data_fd < 0) { | 143 | if (data_fd < 0) { |
| 142 | log_error("Failed to create data file: %m"); | 144 | log_error("Failed to create data file: %m"); |
| 143 | r = -errno; | 145 | r = -errno; |
| 144 | @@ -702,7 +706,12 @@ | 146 | @@ -709,7 +713,12 @@ |
| 145 | } | 147 | } |
| 146 | unlink(data_path); | 148 | unlink(data_path); |
| 147 | 149 | ||
| @@ -154,7 +156,7 @@ Index: git/src/journal/journal-verify.c | |||
| 154 | if (entry_fd < 0) { | 156 | if (entry_fd < 0) { |
| 155 | log_error("Failed to create entry file: %m"); | 157 | log_error("Failed to create entry file: %m"); |
| 156 | r = -errno; | 158 | r = -errno; |
| 157 | @@ -710,7 +719,12 @@ | 159 | @@ -717,7 +726,12 @@ |
| 158 | } | 160 | } |
| 159 | unlink(entry_path); | 161 | unlink(entry_path); |
| 160 | 162 | ||
diff --git a/meta/recipes-core/systemd/systemd/systemd-pam-fix-msformat.patch b/meta/recipes-core/systemd/systemd/systemd-pam-fix-msformat.patch index 8d1aa7d11a..77bb305874 100644 --- a/meta/recipes-core/systemd/systemd/systemd-pam-fix-msformat.patch +++ b/meta/recipes-core/systemd/systemd/systemd-pam-fix-msformat.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-198/src/fsck/fsck.c | 4 | Index: systemd-204/src/fsck/fsck.c |
| 5 | =================================================================== | 5 | =================================================================== |
| 6 | --- systemd-198.orig/src/fsck/fsck.c 2013-03-07 13:18:34.000000000 -0800 | 6 | --- systemd-204.orig/src/fsck/fsck.c 2013-04-02 05:48:49.000000000 -0700 |
| 7 | +++ systemd-198/src/fsck/fsck.c 2013-03-09 14:49:03.756572873 -0800 | 7 | +++ systemd-204/src/fsck/fsck.c 2013-05-23 11:26:51.776345015 -0700 |
| 8 | @@ -37,6 +37,8 @@ | 8 | @@ -37,6 +37,8 @@ |
| 9 | #include "virt.h" | 9 | #include "virt.h" |
| 10 | #include "fileio.h" | 10 | #include "fileio.h" |
| @@ -14,7 +14,7 @@ Index: systemd-198/src/fsck/fsck.c | |||
| 14 | static bool arg_skip = false; | 14 | static bool arg_skip = false; |
| 15 | static bool arg_force = false; | 15 | static bool arg_force = false; |
| 16 | static bool arg_show_progress = false; | 16 | static bool arg_show_progress = false; |
| 17 | @@ -203,9 +205,16 @@ | 17 | @@ -198,9 +200,16 @@ |
| 18 | char *device; | 18 | char *device; |
| 19 | double p; | 19 | double p; |
| 20 | usec_t t; | 20 | usec_t t; |
| @@ -33,10 +33,10 @@ Index: systemd-198/src/fsck/fsck.c | |||
| 33 | 33 | ||
| 34 | /* Only show one progress counter at max */ | 34 | /* Only show one progress counter at max */ |
| 35 | if (!locked) { | 35 | if (!locked) { |
| 36 | Index: systemd-198/src/core/swap.c | 36 | Index: systemd-204/src/core/swap.c |
| 37 | =================================================================== | 37 | =================================================================== |
| 38 | --- systemd-198.orig/src/core/swap.c 2013-03-07 13:18:34.000000000 -0800 | 38 | --- systemd-204.orig/src/core/swap.c 2013-05-06 12:06:04.000000000 -0700 |
| 39 | +++ systemd-198/src/core/swap.c 2013-03-09 14:49:03.756572873 -0800 | 39 | +++ systemd-204/src/core/swap.c 2013-05-23 11:26:51.780345015 -0700 |
| 40 | @@ -41,6 +41,8 @@ | 40 | @@ -41,6 +41,8 @@ |
| 41 | #include "path-util.h" | 41 | #include "path-util.h" |
| 42 | #include "virt.h" | 42 | #include "virt.h" |
| @@ -46,7 +46,7 @@ Index: systemd-198/src/core/swap.c | |||
| 46 | static const UnitActiveState state_translation_table[_SWAP_STATE_MAX] = { | 46 | static const UnitActiveState state_translation_table[_SWAP_STATE_MAX] = { |
| 47 | [SWAP_DEAD] = UNIT_INACTIVE, | 47 | [SWAP_DEAD] = UNIT_INACTIVE, |
| 48 | [SWAP_ACTIVATING] = UNIT_ACTIVATING, | 48 | [SWAP_ACTIVATING] = UNIT_ACTIVATING, |
| 49 | @@ -1037,6 +1039,7 @@ | 49 | @@ -1055,6 +1057,7 @@ |
| 50 | char *dev = NULL, *d; | 50 | char *dev = NULL, *d; |
| 51 | int prio = 0, k; | 51 | int prio = 0, k; |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ Index: systemd-198/src/core/swap.c | |||
| 54 | k = fscanf(m->proc_swaps, | 54 | k = fscanf(m->proc_swaps, |
| 55 | "%ms " /* device/file */ | 55 | "%ms " /* device/file */ |
| 56 | "%*s " /* type of swap */ | 56 | "%*s " /* type of swap */ |
| 57 | @@ -1044,6 +1047,16 @@ | 57 | @@ -1062,6 +1065,16 @@ |
| 58 | "%*s " /* used */ | 58 | "%*s " /* used */ |
| 59 | "%i\n", /* priority */ | 59 | "%i\n", /* priority */ |
| 60 | &dev, &prio); | 60 | &dev, &prio); |
| @@ -71,10 +71,10 @@ Index: systemd-198/src/core/swap.c | |||
| 71 | if (k != 2) { | 71 | if (k != 2) { |
| 72 | if (k == EOF) | 72 | if (k == EOF) |
| 73 | break; | 73 | break; |
| 74 | Index: systemd-198/src/core/mount-setup.c | 74 | Index: systemd-204/src/core/mount-setup.c |
| 75 | =================================================================== | 75 | =================================================================== |
| 76 | --- systemd-198.orig/src/core/mount-setup.c 2013-03-07 13:18:34.000000000 -0800 | 76 | --- systemd-204.orig/src/core/mount-setup.c 2013-04-24 06:34:38.000000000 -0700 |
| 77 | +++ systemd-198/src/core/mount-setup.c 2013-03-09 14:49:03.760572872 -0800 | 77 | +++ systemd-204/src/core/mount-setup.c 2013-05-23 11:26:51.780345015 -0700 |
| 78 | @@ -28,6 +28,7 @@ | 78 | @@ -28,6 +28,7 @@ |
| 79 | #include <assert.h> | 79 | #include <assert.h> |
| 80 | #include <unistd.h> | 80 | #include <unistd.h> |
| @@ -92,7 +92,7 @@ Index: systemd-198/src/core/mount-setup.c | |||
| 92 | #ifndef TTY_GID | 92 | #ifndef TTY_GID |
| 93 | #define TTY_GID 5 | 93 | #define TTY_GID 5 |
| 94 | #endif | 94 | #endif |
| 95 | @@ -231,9 +234,12 @@ | 95 | @@ -233,9 +236,12 @@ |
| 96 | for (;;) { | 96 | for (;;) { |
| 97 | char *controller; | 97 | char *controller; |
| 98 | int enabled = 0; | 98 | int enabled = 0; |
| @@ -107,11 +107,11 @@ Index: systemd-198/src/core/mount-setup.c | |||
| 107 | if (feof(f)) | 107 | if (feof(f)) |
| 108 | break; | 108 | break; |
| 109 | 109 | ||
| 110 | Index: systemd-198/src/core/mount.c | 110 | Index: systemd-204/src/core/mount.c |
| 111 | =================================================================== | 111 | =================================================================== |
| 112 | --- systemd-198.orig/src/core/mount.c 2013-03-07 13:18:34.000000000 -0800 | 112 | --- systemd-204.orig/src/core/mount.c 2013-05-06 12:06:04.000000000 -0700 |
| 113 | +++ systemd-198/src/core/mount.c 2013-03-09 14:49:03.760572872 -0800 | 113 | +++ systemd-204/src/core/mount.c 2013-05-23 11:26:51.780345015 -0700 |
| 114 | @@ -42,6 +42,8 @@ | 114 | @@ -43,6 +43,8 @@ |
| 115 | #include "exit-status.h" | 115 | #include "exit-status.h" |
| 116 | #include "def.h" | 116 | #include "def.h" |
| 117 | 117 | ||
| @@ -120,7 +120,7 @@ Index: systemd-198/src/core/mount.c | |||
| 120 | static const UnitActiveState state_translation_table[_MOUNT_STATE_MAX] = { | 120 | static const UnitActiveState state_translation_table[_MOUNT_STATE_MAX] = { |
| 121 | [MOUNT_DEAD] = UNIT_INACTIVE, | 121 | [MOUNT_DEAD] = UNIT_INACTIVE, |
| 122 | [MOUNT_MOUNTING] = UNIT_ACTIVATING, | 122 | [MOUNT_MOUNTING] = UNIT_ACTIVATING, |
| 123 | @@ -1584,7 +1586,7 @@ | 123 | @@ -1626,7 +1628,7 @@ |
| 124 | int k; | 124 | int k; |
| 125 | 125 | ||
| 126 | device = path = options = options2 = fstype = d = p = o = NULL; | 126 | device = path = options = options2 = fstype = d = p = o = NULL; |
| @@ -129,7 +129,7 @@ Index: systemd-198/src/core/mount.c | |||
| 129 | if ((k = fscanf(m->proc_self_mountinfo, | 129 | if ((k = fscanf(m->proc_self_mountinfo, |
| 130 | "%*s " /* (1) mount id */ | 130 | "%*s " /* (1) mount id */ |
| 131 | "%*s " /* (2) parent id */ | 131 | "%*s " /* (2) parent id */ |
| 132 | @@ -1603,7 +1605,31 @@ | 132 | @@ -1645,7 +1647,31 @@ |
| 133 | &fstype, | 133 | &fstype, |
| 134 | &device, | 134 | &device, |
| 135 | &options2)) != 5) { | 135 | &options2)) != 5) { |
| @@ -162,10 +162,10 @@ Index: systemd-198/src/core/mount.c | |||
| 162 | if (k == EOF) | 162 | if (k == EOF) |
| 163 | break; | 163 | break; |
| 164 | 164 | ||
| 165 | Index: systemd-198/src/core/umount.c | 165 | Index: systemd-204/src/core/umount.c |
| 166 | =================================================================== | 166 | =================================================================== |
| 167 | --- systemd-198.orig/src/core/umount.c 2013-03-07 13:18:34.000000000 -0800 | 167 | --- systemd-204.orig/src/core/umount.c 2013-04-18 08:14:11.000000000 -0700 |
| 168 | +++ systemd-198/src/core/umount.c 2013-03-09 14:49:03.760572872 -0800 | 168 | +++ systemd-204/src/core/umount.c 2013-05-23 11:26:51.780345015 -0700 |
| 169 | @@ -36,6 +36,8 @@ | 169 | @@ -36,6 +36,8 @@ |
| 170 | #include "util.h" | 170 | #include "util.h" |
| 171 | #include "virt.h" | 171 | #include "virt.h" |
| @@ -235,10 +235,10 @@ Index: systemd-198/src/core/umount.c | |||
| 235 | if (k == EOF) | 235 | if (k == EOF) |
| 236 | break; | 236 | break; |
| 237 | 237 | ||
| 238 | Index: systemd-198/src/shared/socket-util.c | 238 | Index: systemd-204/src/shared/socket-util.c |
| 239 | =================================================================== | 239 | =================================================================== |
| 240 | --- systemd-198.orig/src/shared/socket-util.c 2013-03-07 13:18:34.000000000 -0800 | 240 | --- systemd-204.orig/src/shared/socket-util.c 2013-04-18 08:14:11.000000000 -0700 |
| 241 | +++ systemd-198/src/shared/socket-util.c 2013-03-09 14:49:03.760572872 -0800 | 241 | +++ systemd-204/src/shared/socket-util.c 2013-05-23 11:30:53.528348084 -0700 |
| 242 | @@ -40,6 +40,8 @@ | 242 | @@ -40,6 +40,8 @@ |
| 243 | #include "missing.h" | 243 | #include "missing.h" |
| 244 | #include "fileio.h" | 244 | #include "fileio.h" |
| @@ -252,25 +252,25 @@ Index: systemd-198/src/shared/socket-util.c | |||
| 252 | a->type = SOCK_RAW; | 252 | a->type = SOCK_RAW; |
| 253 | 253 | ||
| 254 | errno = 0; | 254 | errno = 0; |
| 255 | - if (sscanf(s, "%ms %u", &sfamily, &group) < 1) | ||
| 256 | +#ifdef HAVE_MSFORMAT | 255 | +#ifdef HAVE_MSFORMAT |
| 257 | + if (sscanf(s, "%ms %u", &sfamily, &group) < 1) | 256 | if (sscanf(s, "%ms %u", &sfamily, &group) < 1) |
| 257 | - return errno > 0 ? -errno : -EINVAL; | ||
| 258 | + return errno ? -errno : -EINVAL; | 258 | + return errno ? -errno : -EINVAL; |
| 259 | +#else | 259 | +#else |
| 260 | + sfamily = malloc(257); | 260 | + sfamily = malloc(257); |
| 261 | + if (sscanf(s, "%256s %u", sfamily, &group) < 1) { | 261 | + if (sscanf(s, "%256s %u", sfamily, &group) < 1) { |
| 262 | + free(sfamily); | 262 | + free(sfamily); |
| 263 | return errno ? -errno : -EINVAL; | 263 | + return errno ? -errno : -EINVAL; |
| 264 | + } | 264 | + } |
| 265 | +#endif /* HAVE_MSFORMAT */ | 265 | +#endif /* HAVE_MSFORMAT */ |
| 266 | 266 | ||
| 267 | family = netlink_family_from_string(sfamily); | 267 | family = netlink_family_from_string(sfamily); |
| 268 | if (family < 0) | 268 | if (family < 0) |
| 269 | Index: systemd-198/src/tmpfiles/tmpfiles.c | 269 | Index: systemd-204/src/tmpfiles/tmpfiles.c |
| 270 | =================================================================== | 270 | =================================================================== |
| 271 | --- systemd-198.orig/src/tmpfiles/tmpfiles.c 2013-03-07 13:18:34.000000000 -0800 | 271 | --- systemd-204.orig/src/tmpfiles/tmpfiles.c 2013-04-24 06:34:38.000000000 -0700 |
| 272 | +++ systemd-198/src/tmpfiles/tmpfiles.c 2013-03-09 14:55:40.772566599 -0800 | 272 | +++ systemd-204/src/tmpfiles/tmpfiles.c 2013-05-23 11:26:51.784345016 -0700 |
| 273 | @@ -51,6 +51,8 @@ | 273 | @@ -52,6 +52,8 @@ |
| 274 | #include "conf-files.h" | 274 | #include "conf-files.h" |
| 275 | #include "capability.h" | 275 | #include "capability.h" |
| 276 | 276 | ||
| @@ -279,7 +279,7 @@ Index: systemd-198/src/tmpfiles/tmpfiles.c | |||
| 279 | /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates | 279 | /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates |
| 280 | * them in the file system. This is intended to be used to create | 280 | * them in the file system. This is intended to be used to create |
| 281 | * properly owned directories beneath /tmp, /var/tmp, /run, which are | 281 | * properly owned directories beneath /tmp, /var/tmp, /run, which are |
| 282 | @@ -993,6 +995,7 @@ | 282 | @@ -1029,6 +1031,7 @@ |
| 283 | if (!i) | 283 | if (!i) |
| 284 | return log_oom(); | 284 | return log_oom(); |
| 285 | 285 | ||
| @@ -287,7 +287,7 @@ Index: systemd-198/src/tmpfiles/tmpfiles.c | |||
| 287 | r = sscanf(buffer, | 287 | r = sscanf(buffer, |
| 288 | "%c %ms %ms %ms %ms %ms %n", | 288 | "%c %ms %ms %ms %ms %ms %n", |
| 289 | &type, | 289 | &type, |
| 290 | @@ -1002,6 +1005,29 @@ | 290 | @@ -1038,6 +1041,29 @@ |
| 291 | &group, | 291 | &group, |
| 292 | &age, | 292 | &age, |
| 293 | &n); | 293 | &n); |
| @@ -316,11 +316,11 @@ Index: systemd-198/src/tmpfiles/tmpfiles.c | |||
| 316 | + | 316 | + |
| 317 | if (r < 2) { | 317 | if (r < 2) { |
| 318 | log_error("[%s:%u] Syntax error.", fname, line); | 318 | log_error("[%s:%u] Syntax error.", fname, line); |
| 319 | r = -EIO; | 319 | return -EIO; |
| 320 | Index: systemd-198/src/cryptsetup/cryptsetup-generator.c | 320 | Index: systemd-204/src/cryptsetup/cryptsetup-generator.c |
| 321 | =================================================================== | 321 | =================================================================== |
| 322 | --- systemd-198.orig/src/cryptsetup/cryptsetup-generator.c 2013-03-07 13:18:34.000000000 -0800 | 322 | --- systemd-204.orig/src/cryptsetup/cryptsetup-generator.c 2013-05-06 12:06:04.000000000 -0700 |
| 323 | +++ systemd-198/src/cryptsetup/cryptsetup-generator.c 2013-03-09 14:51:33.080571639 -0800 | 323 | +++ systemd-204/src/cryptsetup/cryptsetup-generator.c 2013-05-23 11:26:51.784345016 -0700 |
| 324 | @@ -31,6 +31,8 @@ | 324 | @@ -31,6 +31,8 @@ |
| 325 | #include "strv.h" | 325 | #include "strv.h" |
| 326 | #include "fileio.h" | 326 | #include "fileio.h" |
| @@ -330,7 +330,7 @@ Index: systemd-198/src/cryptsetup/cryptsetup-generator.c | |||
| 330 | static const char *arg_dest = "/tmp"; | 330 | static const char *arg_dest = "/tmp"; |
| 331 | static bool arg_enabled = true; | 331 | static bool arg_enabled = true; |
| 332 | static bool arg_read_crypttab = true; | 332 | static bool arg_read_crypttab = true; |
| 333 | @@ -395,7 +397,16 @@ | 333 | @@ -398,7 +400,16 @@ |
| 334 | if (*l == '#' || *l == 0) | 334 | if (*l == '#' || *l == 0) |
| 335 | continue; | 335 | continue; |
| 336 | 336 | ||
