Re: [systemd-devel] sd_bus_get_unique_name returns -EBADMSG or -EBUSY

2021-04-07 Thread Carlo Wood
On Wed, 7 Apr 2021 16:15:40 +0200 Lennart Poettering wrote: > > > As you stated in the linked email, there is no global state. > > So, I suppose that if I call any sd_bus_* function that > > all that I have to take into account is that the data > > that is passed to those functions is

Re: [systemd-devel] sd_bus_get_unique_name returns -EBADMSG or -EBUSY

2021-04-07 Thread Lennart Poettering
On Mi, 07.04.21 12:17, Carlo Wood (ca...@alinoe.com) wrote: > On Tue, 6 Apr 2021 18:41:21 +0200 > Lennart Poettering wrote: > > > EBADMSG usually means that somehow an invalid dbus packet we couldn't > > parse entered the stream. maybe some memory corruption thing? or maybe > > you are using

Re: [systemd-devel] hostnamectl set-hostname non-admin user

2021-04-07 Thread Damien LEFEVRE
Thanks Silvio! That's just what I needed. Cheers, -Damien On Tue, Apr 6, 2021 at 9:26 PM Silvio Knizek wrote: > Am Dienstag, dem 06.04.2021 um 16:21 +0300 schrieb Damien LEFEVRE: > > Hi, > > > > I have an embedded device and I do not install sudo. I need to have a > > non-root running the main

Re: [systemd-devel] sd_bus_get_unique_name returns -EBADMSG or -EBUSY

2021-04-07 Thread Carlo Wood
On Tue, 6 Apr 2021 18:41:21 +0200 Lennart Poettering wrote: > EBADMSG usually means that somehow an invalid dbus packet we couldn't > parse entered the stream. maybe some memory corruption thing? or maybe > you are using this in a threaded env without locking? > > Lennart Yes, that is the