projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8fb064
)
bus-util: Return ENOMEDIUM if XDG_RUNTIME_DIR is unset
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Tue, 22 Oct 2024 08:59:27 +0000
(10:59 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Tue, 22 Oct 2024 08:59:27 +0000
(10:59 +0200)
bus_log_connect_error() checks for ENOMEDIUM, not ENXIO.
src/shared/bus-util.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-util.c
b/src/shared/bus-util.c
index 6ea046ee6d43504e04baa30d0569269dddf683f8..57c60dcb67d33bc544e17df7da9d2b2c798b0214 100644
(file)
--- a/
src/shared/bus-util.c
+++ b/
src/shared/bus-util.c
@@
-259,7
+259,7
@@
int bus_connect_user_systemd(sd_bus **ret_bus) {
e = secure_getenv("XDG_RUNTIME_DIR");
if (!e)
- return -EN
XIO
;
+ return -EN
OMEDIUM
;
ee = bus_address_escape(e);
if (!ee)