diff options
author | Brian Cameron <brian.cameron@sun.com> | 2006-04-27 03:06:37 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2006-04-27 03:06:37 +0000 |
commit | d40ec1bee6d272b90926626158726f4ac82bb7b6 (patch) | |
tree | 3144073d682f445b5c6004a5425f254f8dea237d /daemon | |
parent | 4a8546fcd99afe8b98c94f6d8b2a2db8c64f93b0 (diff) | |
download | gdm-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.c | 7 |
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)) { |