kmscon: use /bin/login -p as default login program
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 12 Dec 2012 20:24:51 +0000 (21:24 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 12 Dec 2012 20:24:51 +0000 (21:24 +0100)
commit5a33f412d9ee2baaff028bf670ca757b3e194c09
tree5c969e893a3085f0e9705280f9c7c1740b27403a
parent24fe3f1911fe2b20995b71c77592e64224e8e935
kmscon: use /bin/login -p as default login program

We must pass "-p" to make "login" preserve the environment. We make sure
the environment is correctly reset before calling it so it is safe.
Furthermore, this allows us to pass additional environment variables to
the child without having /bin/login reset it.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
docs/man/kmscon.xml
src/kmscon_conf.c