summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-04-27 03:06:37 +0000
committerBrian Cameron <bcameron@src.gnome.org>2006-04-27 03:06:37 +0000
commitd40ec1bee6d272b90926626158726f4ac82bb7b6 (patch)
tree3144073d682f445b5c6004a5425f254f8dea237d /daemon
parent4a8546fcd99afe8b98c94f6d8b2a2db8c64f93b0 (diff)
downloadgdm-d40ec1bee6d272b90926626158726f4ac82bb7b6.tar.gz
Fix pam stack so that for autologin the GDM PAM stack is
2006-04-26 Brian Cameron <brian.cameron@sun.com> * daemon/verify-pam.c: Fix pam stack so that for autologin the GDM PAM stack is "GDM_KEY_PAM_STACK-autogen" so it works like before.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/verify-pam.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/verify-pam.c b/daemon/verify-pam.c
index 4c2bce2e..9a779086 100644
--- a/daemon/verify-pam.c
+++ b/daemon/verify-pam.c
@@ -1226,8 +1226,11 @@ gdm_verify_setup_user (GdmDisplay *d, const gchar *login, const gchar *display,
gdm_config_key_to_string_per_display (
gdm_get_display_custom_config_file ((gchar *)display),
GDM_KEY_PAM_STACK, &pam_stack);
- if (pam_stack == NULL)
- pam_stack = g_strdup (gdm_get_value_string (GDM_KEY_PAM_STACK));
+
+ if (pam_stack == NULL) {
+ pam_stack = g_strdup_printf ("%s-autologin",
+ gdm_get_value_string (GDM_KEY_PAM_STACK));
+ }
if ( ! create_pamh (d, "gdm-autologin", login, &standalone_pamc,
display, &pamerr)) {