diff options
author | Kay Sievers <kay@vrfy.org> | 2013-11-09 00:58:11 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-11-09 00:58:11 +0100 |
commit | dbb642afae6aa825594fb1c57dff632b013666a3 (patch) | |
tree | 95e61ef5c72ddb2bfb2e43531c8ca8a89551a3f7 /src/libsystemd-bus/bus-internal.c | |
parent | 8159d91a9c92aaee66d450ab0daff88f6e1a42b3 (diff) |
bus: let magic ":no-sender" pass the validation
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; |