diff options
Diffstat (limited to 'src/libsystemd-bus/bus-internal.c')
-rw-r--r-- | src/libsystemd-bus/bus-internal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.c b/src/libsystemd-bus/bus-internal.c index 0bea8cac49..f0a28c623c 100644 --- a/src/libsystemd-bus/bus-internal.c +++ b/src/libsystemd-bus/bus-internal.c @@ -166,6 +166,16 @@ bool service_name_is_valid(const char *p) { return true; } +bool sender_name_is_valid(const char *p) { + if (isempty(p)) + return false; + + if (streq(p, ":no-sender")) + return true; + + return service_name_is_valid(p); +} + bool member_name_is_valid(const char *p) { const char *q; |