--- autologin-1.0.0/src/autologin.c.orig	2010-04-01 22:21:23 +0400
+++ autologin-1.0.0/src/autologin.c	2010-04-01 22:21:34 +0400
@@ -143,7 +143,7 @@
 	pam_start("autologin", user, &PAM_conversation, &pamh);
 	pam_acct_mgmt(pamh, PAM_SILENT);
 	pam_set_item(pamh, PAM_USER, user);
-	pam_set_item(pamh, PAM_TTY, "tty0");
+	pam_set_item(pamh, PAM_TTY, "tty1");
 	pam_set_item(pamh, PAM_RHOST, NULL);
 	pam_set_item(pamh, PAM_RUSER, user);
 	pam_open_session(pamh, PAM_SILENT);