}
_set_uid_property (self, uid);
- if (self->priv->user_type == GUM_USERTYPE_NORMAL ||
- self->priv->user_type == GUM_USERTYPE_ADMIN) {
+ if (self->priv->user_type != GUM_USERTYPE_SYSTEM) {
gchar *dir = g_strdup_printf ("%s/%s",
gum_config_get_string (self->priv->config,
GUM_CONFIG_GENERAL_HOME_DIR_PREF),
GumdDaemonUser *self,
GError **error)
{
- if (self->priv->user_type == GUM_USERTYPE_SYSTEM ||
- self->priv->user_type == GUM_USERTYPE_GUEST) {
+ if (self->priv->user_type == GUM_USERTYPE_SYSTEM) {
return TRUE;
}
GumdDaemonUser *self,
GError **error)
{
- if (self->priv->user_type == GUM_USERTYPE_SYSTEM ||
- self->priv->user_type == GUM_USERTYPE_GUEST) {
+ if (self->priv->user_type == GUM_USERTYPE_SYSTEM) {
return TRUE;
}
fail_unless (uid == gid);
hdir = g_build_filename (gum_config_get_string (config,
GUM_CONFIG_GENERAL_HOME_DIR_PREF), "guest_daemon_user1", NULL);
- fail_unless (stat (hdir, &sb) != 0);
+ fail_unless (stat (hdir, &sb) == 0);
g_free (hdir);
/* case 14: user does not exist and delete */