public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/files/
@ 2022-04-03 10:02 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2022-04-03 10:02 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-03 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-03 10:02 [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/files/ Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox