fop fails if environmental variable HOME includes a space

Bug #1993853 reported by tom stevens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fop (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ HOME="/home/tsteven4/work/doc link" fop -q -fo gpsbabel.fo -pdf gpsbabel.pdf
/usr/bin/fop: 46: .: cannot open /home/tsteven4/work/doc: No such file

from /usr/bin/fop we can see $HOME is getting word split.
 44 # Load user's preferences, if any
 45 if [ -f "$HOME/.foprc" ]; then
 46 . $HOME/.foprc
 47 fi

The fix is
$ diff /usr/bin/fop fop
46c46
< . $HOME/.foprc
---
> . "$HOME/.foprc"

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: fop 1:2.6-2
Uname: Linux 5.15.68.1-microsoft-standard-WSL2 x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri Oct 21 05:23:19 2022
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: fop
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
tom stevens (tsteven4) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.