]> source.dussan.org Git - tigervnc.git/commit
vncsession: use /bin/sh if the user shell is not set 1787/head
authorCarlos Santos <casantos@redhat.com>
Thu, 25 Jul 2024 21:39:59 +0000 (18:39 -0300)
committerCarlos Santos <casantos@redhat.com>
Fri, 26 Jul 2024 14:18:31 +0000 (11:18 -0300)
commit4db34f73d461b973867ddaf18bf690219229cd7a
tree094fbf35e50c42027e929e9b303cc9af93550780
parentf8266918695abde714bcada3115d35f0e1b5a06c
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>
unix/vncserver/vncsession.c