Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 17789 - db2html fails for relative input file paths
db2html fails for relative input file paths
Product: Red Hat Linux
Classification: Retired
Component: stylesheets (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2000-09-22 10:56 EDT by Paul Flinders
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-02 18:02:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Flinders 2000-09-22 10:56:02 EDT
db2html has the following code - it appears that the author checked
for the input file being in the current working dir with the
$1 = `basename $1` test

mkdir $TMPDIR
if [ $1 = `basename $1` ]; then
  echo "working on ../$1"
  (cd $TMPDIR; jade -t sgml -ihtml -d ${DB_STYLESHEET}\#html ../$1; cd
  echo "working on $1"
  (cd $TMPDIR; jade -t sgml -ihtml -d ${DB_STYLESHEET}\#html $1; cd

Unfortunately this fails if the input file has a relative path to the
current working dir - including ./input_file - trying to build bonobo
triggers this bug.
Comment 1 Paul Flinders 2000-09-22 11:04:59 EDT
Oh yes and the "cd $SAVE_PWD" at the end isn't needed as the command is run in a
sub shell
Comment 2 Tim Waugh 2000-10-04 11:16:06 EDT
In 1.57-1 I've changed:

if [ $1 = `basename $1` ]; then


if [ ! -z ${1%%/*} ]; then

Note You need to log in before you can comment on or make changes to this bug.