1abbee
From 7d6f53ece9b0a397ee2f8bdaa1a52ef2f03bd81f Mon Sep 17 00:00:00 2001
1abbee
From: Michal Sekletar <msekleta@redhat.com>
1abbee
Date: Tue, 9 Aug 2016 13:02:37 +0200
1abbee
Subject: [PATCH] install: do not crash when processing empty (masked) unit
1abbee
 file
1abbee
1abbee
Related: #1159308
1abbee
---
1abbee
 src/shared/install.c | 2 +-
1abbee
 1 file changed, 1 insertion(+), 1 deletion(-)
1abbee
1abbee
diff --git a/src/shared/install.c b/src/shared/install.c
Pablo Greco 48fc63
index f190dbfab2..f7f9866f4d 100644
1abbee
--- a/src/shared/install.c
1abbee
+++ b/src/shared/install.c
1abbee
@@ -996,7 +996,7 @@ static int unit_file_load(
1abbee
         if (fstat(fd, &st) < 0)
1abbee
                 return -errno;
1abbee
         if (null_or_empty(&st)) {
1abbee
-               info->type = UNIT_FILE_MASKED;
1abbee
+               info->type = UNIT_FILE_TYPE_MASKED;
1abbee
                 return 0;
1abbee
         }
1abbee
         if (S_ISDIR(st.st_mode))