Summary: | Relative filenames in scripts | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Paul Szabo <paul> |
Component: | General | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | critical | CC: | szabo_p |
Priority: | P3 | ||
Version: | 8.64 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
Paul Szabo
2010-05-31 22:23:47 UTC
We have already mentioned (several times) that P1 (and P2) priority are ONLY for Artifex customer issues. This issue is a duplicate because the scripts _should_ rely on the LIBPATH method to open the file. Simply having a 'naked' name on the command line of the script does _NOT_ imply that the current directory is to be searched. If the bug 691355 is fixed to NOT search the CWD when -P- is fixed and the scripts are changed to use -P- then (AFAICT) the hole is plugged. Consider the effective part of 'ps2ascii': OPTIONS="-q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE" if ( test $# -eq 0 ) then $GS_EXECUTABLE $OPTIONS -c save -f ps2ascii.ps - -c quit ... fi If the above is changed to: OPTIONS="-P- -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE" if ( test $# -eq 0 ) then $GS_EXECUTABLE $OPTIONS -c save -f ps2ascii.ps - -c quit... ... fi then the file 'ps2ascii.ps' will NOT be found on the current directory, unless the system admin or user has added the path using the -I option to the ps2ascii invocation or has a GS_LIB environment variable that includes an unsafe path. Since this bug is linked to 691355, please do not re-open this bug, or change priorities. NOTE: you are welcome to comment on this bug even if it is resolved as a duplicate since that will capture your comments and all of the support folks will see the comment (although they may not like it). *** This bug has been marked as a duplicate of bug 691355 *** Verified Ray's comment 3 as correct, r11351 (fix to bug 691355) in combination with the fix to bug 691350 (currently under review), ps2ascii.ps, etc in CWD is ignored, even though they appear on the 'naked' in the scripts. |