session-worker: don't set PAM_TTY to bogus value on failure
At the moment we set PAM_TTY to a bogus value if we're unable to read the current VT.
This commit adds an error check for that case.
At the moment we set PAM_TTY to a bogus value if we're unable to read the current VT.
This commit adds an error check for that case.