fop fails if environmental variable HOME includes a space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fop (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ HOME="/
/usr/bin/fop: 46: .: cannot open /home/tsteven4/
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.
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Fri Oct 21 05:23:19 2022
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: fop
UpgradeStatus: No upgrade log present (probably fresh install)