All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/systemd: fix patch 0019
@ 2019-03-14 21:31 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2019-03-14 21:31 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=6da59bc29ec5f233151b88f138f6937b95f6e0c0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This patch was backported to work with systemd v240. Now that systemd
is at v241, we must update the patch.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 ...e-temporary-strings-to-hold-dbus-paths-on-the.patch | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/package/systemd/0019-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch b/package/systemd/0019-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch
index bd09e60207..007b806c09 100644
--- a/package/systemd/0019-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch
+++ b/package/systemd/0019-Allocate-temporary-strings-to-hold-dbus-paths-on-the.patch
@@ -10,14 +10,14 @@ clear way to understand if the allocation fails.
 (cherry picked from commit f519a19bcd5afe674a9b8fc462cd77d8bad403c1)
 [baruch: backport to v240]
 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+[Adam: Update for v241]
+Signed-off-by: Adam Duskett <aduskett@gmail.com>
 ---
-Upstream status: commit f519a19bcd5
-
  src/libsystemd/sd-bus/bus-objects.c | 68 +++++++++++++++++++++++------
  1 file changed, 54 insertions(+), 14 deletions(-)
 
 diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c
-index d0538104ae25..54b977418e03 100644
+index 58329f3fe78..54b977418e0 100644
 --- a/src/libsystemd/sd-bus/bus-objects.c
 +++ b/src/libsystemd/sd-bus/bus-objects.c
 @@ -1133,7 +1133,8 @@ static int object_manager_serialize_path_and_fallbacks(
@@ -34,7 +34,7 @@ index d0538104ae25..54b977418e03 100644
                  return 0;
  
          /* Second, add fallback vtables registered for any of the prefixes */
--        prefix = alloca(strlen(path) + 1);
+-        prefix = newa(char, strlen(path) + 1);
 +        pl = strlen(path);
 +        assert(pl <= BUS_PATH_SIZE_MAX);
 +        prefix = new(char, pl + 1);
@@ -81,7 +81,7 @@ index d0538104ae25..54b977418e03 100644
 +                if (!prefix)
 +                        return -ENOMEM;
  
--                prefix = alloca(strlen(path) + 1);
+-                prefix = newa(char, strlen(path) + 1);
                  OBJECT_PATH_FOREACH_PREFIX(prefix, path) {
                          n = hashmap_get(bus->nodes, prefix);
                          if (n)
@@ -113,7 +113,7 @@ index d0538104ae25..54b977418e03 100644
                  if (bus->nodes_modified)
                          continue;
  
--                prefix = alloca(strlen(path) + 1);
+-                prefix = newa(char, strlen(path) + 1);
                  OBJECT_PATH_FOREACH_PREFIX(prefix, path) {
                          r = emit_properties_changed_on_interface(bus, prefix, path, interface, true, &found_interface, names);
                          if (r != 0)
@@ -131,7 +131,7 @@ index d0538104ae25..54b977418e03 100644
          if (bus->nodes_modified)
                  return 0;
  
--        prefix = alloca(strlen(path) + 1);
+-        prefix = newa(char, strlen(path) + 1);
 +        pl = strlen(path);
 +        assert(pl <= BUS_PATH_SIZE_MAX);
 +        prefix = new(char, pl + 1);
@@ -155,7 +155,7 @@ index d0538104ae25..54b977418e03 100644
          if (bus->nodes_modified)
                  return 0;
  
--        prefix = alloca(strlen(path) + 1);
+-        prefix = newa(char, strlen(path) + 1);
 +        pl = strlen(path);
 +        assert(pl <= BUS_PATH_SIZE_MAX);
 +        prefix = new(char, pl + 1);
@@ -179,7 +179,7 @@ index d0538104ae25..54b977418e03 100644
          if (bus->nodes_modified)
                  return 0;
  
--        prefix = alloca(strlen(path) + 1);
+-        prefix = newa(char, strlen(path) + 1);
 +        pl = strlen(path);
 +        assert(pl <= BUS_PATH_SIZE_MAX);
 +        prefix = new(char, pl + 1);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-14 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 21:31 [Buildroot] [git commit] package/systemd: fix patch 0019 Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.