Bug 701561 - Fails to process input files containing /./
Summary: Fails to process input files containing /./
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Client API (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-10 13:00 UTC by Jonas Smedegaard
Modified: 2019-10-06 14:05 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Smedegaard 2019-09-10 13:00:29 UTC
As reported at https://bugs.debian.org/939794 the 98rc2 prerelease of Ghostscript fails to process files containing /./ in the path.

The first two commands below succeeds, but the third - differing only in path containing /./ - fails.

jonas@auryn:~/test$ gs -sDEVICE=pgmraw -dEPSCrop -r1200 -dNOPAUSE -dBATCH -dQUIET  -sOutputFile=a.pgm ghostscript/examples/tiger.eps 

jonas@auryn:~/test$ gs -sDEVICE=pgmraw -dEPSCrop -r1200 -dNOPAUSE -dBATCH -dQUIET  -sOutputFile=a.pgm ./ghostscript/examples/tiger.eps 

jonas@auryn:~/test$ gs -sDEVICE=pgmraw -dEPSCrop -r1200 -dNOPAUSE -dBATCH -dQUIET  -sOutputFile=a.pgm ././ghostscript/examples/tiger.eps 
Error: /undefinedfilename in (././ghostscript/examples/tiger.eps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:731/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: Permission denied
GPL Ghostscript RELEASE CANDIDATE 2 9.28: Unrecoverable error, exit code 1
Comment 1 Chris Liddell (chrisl) 2019-10-06 14:05:02 UTC
Fixed in:

https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=0350a0ab