aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/daemon/daemon.c')
-rw-r--r--src/plugins/daemon/daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/daemon/daemon.c b/src/plugins/daemon/daemon.c
index 2068d2dc..252f6fdd 100644
--- a/src/plugins/daemon/daemon.c
+++ b/src/plugins/daemon/daemon.c
@@ -175,6 +175,7 @@ static void * doUpdateMenus(void * arg) {
175 "", 175 "",
176 &user); 176 &user);
177 if (strlen(user) > 0) { 177 if (strlen(user) > 0) {
178#ifndef WINDOWS
178 if (NULL == (pws = getpwnam(user))) { 179 if (NULL == (pws = getpwnam(user))) {
179 canStart = 0; 180 canStart = 0;
180 } else { 181 } else {
@@ -183,6 +184,9 @@ static void * doUpdateMenus(void * arg) {
183 else 184 else
184 canStart = 1; 185 canStart = 1;
185 } 186 }
187#else
188 canStart = 1;
189#endif
186 } 190 }
187 FREE(user); 191 FREE(user);
188 GC_free(dcfg); 192 GC_free(dcfg);