summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-21 16:17:22 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-21 16:17:26 +0200
commit8e7705e52a5f84489d3037c09fa5f9397185560d (patch)
treec44a1826fa94f9101096747d369149715ca36ebe /src
parent0559d3a58ac25a37b832f12fbdefef58fd351270 (diff)
pam: document that we don't do error checking when parsing vtnr
Diffstat (limited to 'src')
-rw-r--r--src/login/pam-module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index d7f412860a..0d387918c7 100644
--- a/src/login/pam-module.c
+++ b/src/login/pam-module.c
@@ -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);