]> source.dussan.org Git - tigervnc.git/commit
vncsession: use /bin/sh if the user shell is not set
authorCarlos Santos <casantos@redhat.com>
Thu, 25 Jul 2024 21:39:59 +0000 (18:39 -0300)
committerLinn Mattsson <linma@cendio.se>
Fri, 18 Oct 2024 09:03:47 +0000 (11:03 +0200)
commit18502cb4b146f26ffc8e797465824f9c6f33cb6a
treecb35a5c6d70067636f704aaeac3e72d68073efb8
parent128b30f939ebe90ee3cbb24e2f62a231a9c8df09
vncsession: use /bin/sh if the user shell is not set

An empty shell field in the password file is valid, although not common.
Use /bin/sh in this case, as documented in the passwd(5) man page, since
the vncserver script requires a non-empty SHELL environment variable.

Fixes issue #1786.

Signed-off-by: Carlos Santos <casantos@redhat.com>
(cherry picked from commit 4db34f73d461b973867ddaf18bf690219229cd7a)
unix/vncserver/vncsession.c