This patch fixes GDM's auto-login feature. See the discussions in #35674 and #40411. It works for me, but I don't want to just commit it because I don't really understand PAM. (Then again, who does?) -- Alex Griffin