Subject: pkg/36252: kdenetwork3/kcmsambaconf tries to access a hard coded path outside of $PREFIX
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jasonb@myjclibrary.org>
List: pkgsrc-bugs
Date: 05/01/2007 08:50:00
>Number:         36252
>Category:       pkg
>Synopsis:       kdenetwork3/kcmsambaconf tries to access a hard coded path outside of $PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 01 08:50:00 +0000 2007
>Originator:     Jason Boyer
>Release:        3.1-RELEASE
>Organization:
>Environment:
NetBSD janus.local 3.1 NetBSD 3.1 (GENERIC.MPACPI) #0: Tue Oct 31 04:47:22 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC.MPACPI i386

>Description:
in the files kdenetwork-3.5.6/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp and kdenetwork-3.5.6/filesharing/simple/filesharing.cpp there's a hard coded reference to "/etc/security/fileshare.conf" which can't exist on NetBSD because of the file /etc/security (in addition to the fact that it would be bad practice being outside of $PREFIX or $PKGSYSCONFDIR


>How-To-Repeat:
Install kdenetwork3, try to accomplish anything in KDE Control Center/Internet & Network/Samba, watch it forget as soon as you close it and return.
>Fix:
Quick and dirty: make the files reference "@PKGSYSCONFDIR@/security/fileshare.conf" with a quick patch


The "right" way: it should honor the sysconfdir set in the Makefile. A bug should be filed upstream in case they have a different plan for it.