~ltsp-upstream/ltsp/ldm

Viewing all changes in revision 1604.

  • Committer: Vagrant Cascadian
  • Date: 2019-12-29 22:33:05 UTC
  • Revision ID: git-v1:c351ac69ef63ed6c84221cef73e409059661b8ba
Fix root access when LDM_USERNAME variable is unset.

This patch fixes an issue leading to root access on ltsp fat client
systems when the user's shell is csh, tcsh, fish and probably any
shell not supporting bourne shell syntax.

When running in an unsupported shell, the LDM_USERNAME variable may
end up being set to empty, resulting in a root login on ltsp fat
clients.

Mitigate this by skipping login when the LDM_USERNAME variable is
unset.

Thanks to Veeti Veteläinen for reporting the issue and Alkis
Georgopoulos for further help in debugging.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: