Subject: pkg/14674: kde2 screen locking fails to unlock
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 11/22/2001 14:16:31
>Number:         14674
>Category:       pkg
>Synopsis:       kde2 screen locking fails to unlock
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 21 17:17:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        NetBSD 1.5Y
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD city-art.mcs.vuw.ac.nz 1.5Y NetBSD 1.5Y (MCS_WORKSTATION) #1: Tue Oct 30 22:54:21 NZDT 2001 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	With the latest kdebase2 package the screenlocking fails to unlock
	when a password is supplied.
	The following appears on stderr:

	kdesktop: kcheckpass failed to start

This is because kcheckpass is now installed mode 4711 and kdesktop calls
'locate("exe", "kcheckpass")' to find the path for kcheckpass and 'locate'
(in kdelibs2: kdecore/kstddirs.cpp) calls 'KStandardDirs::exists()' which
calls 'access(QFile::encodeName(fullPath), R_OK) == 0' which now fails.

>How-To-Repeat:
	build/install kdebase2 package
	run kde2
	lock the screen
	try to unlock

>Fix:
	Short term: install kcheckpass mode 4755
	Longer term: fix locate et al to not require executables to be
		readable.


cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: