summaryrefslogtreecommitdiff
path: root/gs/src/zfile.c
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2002-11-18 17:17:20 +0000
committerRay Johnston <ray.johnston@artifex.com>2002-11-18 17:17:20 +0000
commit10af2934beb6636b12e08fbe536816b841480c0f (patch)
tree956e8195e04923ba39991b5de6e29b0ea2057a44 /gs/src/zfile.c
parent6b4bbe1ad9f8fd4736beac1618117f8fd6a94eef (diff)
Fix: check_file_permissions did not handle the case where no path separator
is needed after the current_directory_name. PostScript code in .locksafe (in gs_init.ps) was already correct. Problem would happen on Mac & VMS. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3337 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/zfile.c')
-rw-r--r--gs/src/zfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/src/zfile.c b/gs/src/zfile.c
index 2f15a63be..75d5f4a82 100644
--- a/gs/src/zfile.c
+++ b/gs/src/zfile.c
@@ -171,7 +171,7 @@ check_file_permissions(i_ctx_t *i_ctx_p, const char *fname, int len,
return 0; /* if Permissions not found, just allow access */
if (fname_bare) {
cwd_len = strlen(gp_current_directory_name);
- sep_string = gp_file_name_concat_string("", 0);
+ sep_string = gp_file_name_concat_string(gp_current_directory_name, cwd_len);
sep_len = strlen(sep_string);
}