Fix non-root-user display server startup failure

master
Timothy Pearson 5 years ago
parent 6f37be1294
commit 2570846cbe

@ -123,7 +123,7 @@ env_set_user(const char *username, char **passwd_file, int display,
if (error == 0) if (error == 0)
{ {
uid = pw_uid; uid = pw_uid;
error = g_setuid(uid); // error = g_setuid(uid);
} }
g_mk_socket_path(0); g_mk_socket_path(0);

@ -589,7 +589,8 @@ xrdp_wm_login_fill_in_combo(struct xrdp_wm *self, struct xrdp_bitmap *b)
if ((g_strncasecmp(p, "globals", 255) == 0) if ((g_strncasecmp(p, "globals", 255) == 0)
|| (g_strncasecmp(p, "channels", 255) == 0) || (g_strncasecmp(p, "channels", 255) == 0)
|| (g_strncasecmp(p, "Logging", 255) == 0)) || (g_strncasecmp(p, "Logging", 255) == 0)
|| (g_strncasecmp(p, "Database", 255) == 0))
{ {
} }
else else

Loading…
Cancel
Save