Commit e05a5a07 authored by William Jon McCann's avatar William Jon McCann Committed by William Jon McCann

Also check for empty hostname strings. Don't print null strings - solaris

2007-09-24  William Jon McCann  <mccann@jhu.edu>

	* daemon/gdm-session-worker.c: (gdm_session_worker_initialize_pam):
	Also check for empty hostname strings.
	* daemon/test-session.c: (on_open):
	Don't print null strings - solaris crashes.
	Patch from Brian Cameron <brian.cameron@sun.com>


svn path=/branches/mccann-gobject/; revision=5319
parent fc938fa9
2007-09-24 William Jon McCann <mccann@jhu.edu>
* daemon/gdm-session-worker.c: (gdm_session_worker_initialize_pam):
Also check for empty hostname strings.
* daemon/test-session.c: (on_open):
Don't print null strings - solaris crashes.
Patch from Brian Cameron <brian.cameron@sun.com>
2007-09-21 William Jon McCann <mccann@jhu.edu>
* gui/simple-greeter/gdm-simple-greeter.c: (create_greeter):
......
......@@ -823,7 +823,7 @@ gdm_session_worker_initialize_pam (GdmSessionWorker *worker,
}
}
if (hostname != NULL) {
if (hostname != NULL && hostname[0] != '\0') {
error_code = pam_set_item (worker->priv->pam_handle, PAM_RHOST, hostname);
if (error_code != PAM_SUCCESS) {
......
......@@ -39,7 +39,7 @@ on_open (GdmSession *session,
GError *error;
gboolean res;
g_debug ("Got opened: begin auth for %s", username);
g_debug ("Got opened: begin auth for %s", username ? username : "(null)");
error = NULL;
res = gdm_session_begin_verification (session,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment