projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fcb3af
)
machined: fix enumeration of existing machines on restart
author
Lennart Poettering
<lennart@poettering.net>
Tue, 11 Feb 2014 20:06:51 +0000
(21:06 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 11 Feb 2014 20:06:51 +0000
(21:06 +0100)
src/machine/machined.c
patch
|
blob
|
history
diff --git
a/src/machine/machined.c
b/src/machine/machined.c
index
6eeb053
..
20e6f7c
100644
(file)
--- a/
src/machine/machined.c
+++ b/
src/machine/machined.c
@@
-106,6
+106,10
@@
int manager_enumerate_machines(Manager *m) {
if (!dirent_is_file(de))
continue;
+ /* Ignore symlinks that map the unit name to the machine */
+ if (startswith(de->d_name, "unit:"))
+ continue;
+
k = manager_add_machine(m, de->d_name, &machine);
if (k < 0) {
log_error("Failed to add machine by file name %s: %s", de->d_name, strerror(-k));