Bug 701561

Summary: Fails to process input files containing /./
Product: Ghostscript Reporter: Jonas Smedegaard <dr>
Component: Client APIAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal CC: chris.liddell
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

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