chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: let magic ":no-sender" pass the validation
[elogind.git]
/
src
/
libsystemd-bus
/
bus-internal.c
diff --git
a/src/libsystemd-bus/bus-internal.c
b/src/libsystemd-bus/bus-internal.c
index 0bea8cac498918b3e2f959ac07da4e8152c5558c..f0a28c623c8d47a13a939ace7df51f01a2ef7fa9 100644
(file)
--- 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;