Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/files/
Date: Sun, 03 Apr 2022 10:02:45
Message-Id: 1648979783.2bda6cc82caf55afd1f0c5c213f6525cb2d2fd3d.flow@gentoo
1 commit: 2bda6cc82caf55afd1f0c5c213f6525cb2d2fd3d
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 2 06:48:39 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 3 09:56:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bda6cc8
7
8 net-misc/tigervnc: Fix bug in init script
9
10 cannot start user-server when user-home is on nfs and not readable by
11 root
12
13 Closes: https://bugs.gentoo.org/690046
14 Signed-off-by: Manuel Mommertz <2kmm <AT> gmx.de>
15 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
16 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
17
18 net-misc/tigervnc/files/tigervnc-1.12.0.initd | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
21 diff --git a/net-misc/tigervnc/files/tigervnc-1.12.0.initd b/net-misc/tigervnc/files/tigervnc-1.12.0.initd
22 index c27d9c01bd7e..187b3c7296b4 100644
23 --- a/net-misc/tigervnc/files/tigervnc-1.12.0.initd
24 +++ b/net-misc/tigervnc/files/tigervnc-1.12.0.initd
25 @@ -12,7 +12,8 @@ checkconfig() {
26 if [ -n "${DISPLAYS}" ]; then
27 if [ "$1" = "start" ]; then
28 for user in $DISPLAYS; do
29 - if eval [ ! -f "~${user%%:*}/.vnc/passwd" ]; then
30 + # bug #690046
31 + if ! runuser -l "${user%%:*}" -c "[ -f ~/.vnc/passwd ]"; then
32 eerror "There are no passwords defined for user ${user%%:*}."
33 return 1
34 elif [ -e "/tmp/.X11-unix/X${user##*:}" ]; then