Bug 117465

Summary: Suse Help center was not able to create help index when CDPATH is used by user
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Michael Widenius <monty>
Component: KDEAssignee: Stephan Binner <stbinner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: 32bit   
OS: SuSE Pro 9.3   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Widenius 2005-09-16 15:02:45 UTC
Suse Help center was not able to create help index when CDPATH is used by user.

When using 'Build Search index', the index was reported to go ok (when not
looking at details) but no index was created and any searches reported the error:

Top-Level Documentation

Release Notes
Htdig error:
Unable to read configuration file

The bug was that we can't call setgid with CDPATH or ENV environvariables set

A temporary fix was to do the following changes to the /opt/kde3/bin/khc_htdig.pl:
--- /opt/kde3/bin/khc_htdig.pl  Fri Sep 16 16:54:19 2005
***************
*** 113,118 ****
--- 113,120 ----
  close CONF;

  $ENV{ PATH } = '';
+ $ENV{ CDPATH } = '';
+ $ENV{ ENV } = '';

  my $ret = system( "$htdigbin/htdig -s -i -c $conffile" );
  if ( $ret != 0 ) {


The real fix is to fix the program that generates the above file.
Comment 1 Dirk Mueller 2005-09-17 16:14:14 UTC
I committed this upstream, we'll fetch it automatically via version updates 
for 10.1