[Bug 1913656] [NEW] Fix for Ghostscript 9.50 upstream bug needs to be back-ported
Launchpad Bug Tracker
1913656 at bugs.launchpad.net
Mon Oct 18 17:17:44 UTC 2021
You have been subscribed to a public bug by William Wilson (jawn-smith):
[Impact]
* The command line syntax `gs [options] -- <input_file>` fails
to load in the input file with a "permission denied" error.
* Per the ghostscript documentation, the `--` syntax is used as follows:
"-- filename arg1 ...
Takes the next argument as a file name as usual,
but takes all remaining arguments (even if they
have the syntactic form of switches) and defines
the name ARGUMENTS in userdict (not systemdict)
as an array of those strings, before running the
file. When Ghostscript finishes executing the file,
it exits back to the shell."
[Test Case]
---------- to be performed in a desktop environment ----------
* Obtain a valid input file for ghostscript. The Source package
contains an `examples/` directory with plenty to choose from.
* `gs -- <input-file>`
* Observe that the test failed with a "permission denied" error.
* Install the version of ghostscript from focal-proposed.
* `gs -- <input-file>`
* Observe that the command succeeds and a ghostscript window.
appears with the output of the `gs` command.
[Regression Potential]
* Since this patch affects command line processing, it is possible
that other arguments or command line syntaxes could be affected.
[Original Description]
Ghostscript 9.50 exhibits https://bugs.ghostscript.com/show_bug.cgi?id=701894 (fix the '--' and co options) which causes (eg) ocrfeeder to fail to load PDF files: an input file specified using the "... -- filename ..." command line syntax has no read permission in the GS interpreter.
This commit fixes it:
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=24ec06a27df63297796a379c95ee5d4b39040410
GS 9.52 includes the commit.
Either apply the fix from the linked commit in the Focal-Updates
version, or upgrade it to 9.52.
** Affects: ghostscript (Ubuntu)
Importance: Medium
Status: Fix Released
** Affects: ghostscript (Ubuntu Focal)
Importance: Medium
Assignee: William Wilson (jawn-smith)
Status: In Progress
** Tags: focal verification-needed verification-needed-focal
--
Fix for Ghostscript 9.50 upstream bug needs to be back-ported
https://bugs.launchpad.net/bugs/1913656
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list