chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: document that assignemnts of devices to seats are persistent
[elogind.git]
/
src
/
login
/
multi-seat-x.c
diff --git
a/src/login/multi-seat-x.c
b/src/login/multi-seat-x.c
index 32d868888f35976022933af3f4b71d2cf892f9c1..59f70882d41104ea0e863f5aee7914621b4056d3 100644
(file)
--- a/
src/login/multi-seat-x.c
+++ b/
src/login/multi-seat-x.c
@@
-97,7
+97,7
@@
int main(int argc, char *argv[]) {
device_node = strdup(dn);
if (!device_node) {
udev_device_unref(d);
device_node = strdup(dn);
if (!device_node) {
udev_device_unref(d);
- log_
error("Out of memory."
);
+ log_
oom(
);
goto fail;
}
}
goto fail;
}
}
@@
-113,7
+113,7
@@
int main(int argc, char *argv[]) {
goto fail;
}
goto fail;
}
- r =
safe_mkdir
("/run/systemd/multi-session-x", 0755, 0, 0);
+ r =
mkdir_safe_label
("/run/systemd/multi-session-x", 0755, 0, 0);
if (r < 0) {
log_error("Failed to create directory: %s", strerror(-r));
goto fail;
if (r < 0) {
log_error("Failed to create directory: %s", strerror(-r));
goto fail;
@@
-121,7
+121,7
@@
int main(int argc, char *argv[]) {
path = strappend("/run/systemd/multi-session-x/", seat);
if (!path) {
path = strappend("/run/systemd/multi-session-x/", seat);
if (!path) {
- log_
error("Out of memory"
);
+ log_
oom(
);
goto fail;
}
goto fail;
}