Bug 117465 - Suse Help center was not able to create help index when CDPATH is used by user
Summary: Suse Help center was not able to create help index when CDPATH is used by user
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: KDE (show other bugs)
Version: unspecified
Hardware: 32bit SuSE Pro 9.3
: P5 - None : Minor
Target Milestone: ---
Assignee: Stephan Binner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-16 15:02 UTC by Michael Widenius
Modified: 2005-09-17 16:14 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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