mirror of
https://github.com/systemd/systemd.git
synced 2024-12-13 04:03:35 +08:00
parent
1f0c7cd5e1
commit
88414eed6f
@ -4703,7 +4703,9 @@ int unit_load_fragment(Unit *u) {
|
||||
return r;
|
||||
|
||||
if (null_or_empty(&st)) {
|
||||
u->load_state = UNIT_MASKED;
|
||||
/* Unit file is masked */
|
||||
|
||||
u->load_state = u->perpetual ? UNIT_LOADED : UNIT_MASKED; /* don't allow perpetual units to ever be masked */
|
||||
u->fragment_mtime = 0;
|
||||
} else {
|
||||
u->load_state = UNIT_LOADED;
|
||||
|
Loading…
Reference in New Issue
Block a user