mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
machined: fix enumeration of existing machines on restart
This commit is contained in:
parent
2fcb3af6a2
commit
b87633c4b2
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user