commit: 2bda6cc82caf55afd1f0c5c213f6525cb2d2fd3d Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> AuthorDate: Sat Apr 2 06:48:39 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Sun Apr 3 09:56:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bda6cc8
net-misc/tigervnc: Fix bug in init script cannot start user-server when user-home is on nfs and not readable by root Closes: https://bugs.gentoo.org/690046 Signed-off-by: Manuel Mommertz <2kmm <AT> gmx.de> Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> net-misc/tigervnc/files/tigervnc-1.12.0.initd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net-misc/tigervnc/files/tigervnc-1.12.0.initd b/net-misc/tigervnc/files/tigervnc-1.12.0.initd index c27d9c01bd7e..187b3c7296b4 100644 --- a/net-misc/tigervnc/files/tigervnc-1.12.0.initd +++ b/net-misc/tigervnc/files/tigervnc-1.12.0.initd @@ -12,7 +12,8 @@ checkconfig() { if [ -n "${DISPLAYS}" ]; then if [ "$1" = "start" ]; then for user in $DISPLAYS; do - if eval [ ! -f "~${user%%:*}/.vnc/passwd" ]; then + # bug #690046 + if ! runuser -l "${user%%:*}" -c "[ -f ~/.vnc/passwd ]"; then eerror "There are no passwords defined for user ${user%%:*}." return 1 elif [ -e "/tmp/.X11-unix/X${user##*:}" ]; then
