mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-11 04:58:19 +03:00
Merge pull request #1896 from phomes/install-wrong-enum
install: don't mix state and type enums
This commit is contained in:
commit
f978cf31ec
@ -942,7 +942,7 @@ static int unit_file_load(
|
||||
if (fstat(fd, &st) < 0)
|
||||
return -errno;
|
||||
if (null_or_empty(&st)) {
|
||||
info->type = UNIT_FILE_MASKED;
|
||||
info->type = UNIT_FILE_TYPE_MASKED;
|
||||
return 0;
|
||||
}
|
||||
if (S_ISDIR(st.st_mode))
|
||||
|
Loading…
x
Reference in New Issue
Block a user