`gs [options] -- <input_file>` fails with "permission denied"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
William Wilson |
Bug Description
[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 Plan]
---------- 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.
-------
* Run ocrfeeder from a terminal
* Click File -> Import PDF
* Select a PDF file
* Note that no pages are displayed, and ocrfeeder throws a
"Permission denied" error in the terminal from which it
was launched
* Install ghostscript from -proposed
* Run ocrfeeder from a terminal and attempt to import the PDF
file again
* Note that the pages of the PDF are displayed in ocrfeeder
and no error is reported in the terminal
-------
* Using the version of ghostscript in -proposed, run a variety
of different commands to ensure there has been no regression.
* gs <input file>
* gs -r300x300 -sPAPERSIZE=letter \
* gs -r300x300 -sPAPERSIZE=letter \
[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:/
This commit fixes it:
http://
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.
tags: | added: focal |
Changed in ghostscript (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in ghostscript (Ubuntu Focal): | |
importance: | Undecided → Medium |
description: | updated |
Changed in ghostscript (Ubuntu Focal): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
tags: | added: verification-needed verification-needed-focal |
description: | updated |
summary: |
- Fix for Ghostscript 9.50 upstream bug needs to be back-ported + `gs [options] -- <input_file>` fails with "permission denied" |
20.10 has 9.52 so that's fixed in the current serie and a request for SRU to focal
Could you perhaps provide an user facing example of steps to trigger the issue which could be used to justify and test the stable update? (you mentioned ocrfeeder)