chiark / gitweb /
pam: document that we don't do error checking when parsing vtnr
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 14:17:22 +0000 (16:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 14:17:26 +0000 (16:17 +0200)
src/login/pam-module.c

index d7f4128..0d38791 100644 (file)
@@ -452,6 +452,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
                 tty = "";
         }
 
+        /* If this fails vtnr will be 0, that's intended */
         if (!isempty(cvtnr))
                 safe_atou32(cvtnr, &vtnr);