chiark / gitweb /
bus-proxyd: ignore errors from sd_bus_creds_get_well_known_names()
authorDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 17:36:29 +0000 (18:36 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 17:41:26 +0000 (18:41 +0100)
commit3e0a2048978fcc7aff00797bdb876b2592c2fbc7
tree5d0c91012338172516dc8f9b7d6572e5b1d75224
parent259ac5cd7e37c4b9bd908460fe4de030aa252025
bus-proxyd: ignore errors from sd_bus_creds_get_well_known_names()

sd_bus_creds_get_well_known_names() fails with -ENODATA in case the
message has no names attached, which is intended behavior if the
remote connection didn't own any names at the time of sending.

The function already deals with 'sender_names' being an empty strv,
so we can just continue in such cases.
src/bus-proxyd/bus-proxyd.c