diff options
author | Zdenek Hutyra <zhutyra@centrum.cz> | 2024-05-29 13:58:50 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2024-09-17 14:40:10 +0100 |
commit | f3a927d0251ca9033c4fbfc18e7d78a7fd93d2bd (patch) | |
tree | 076b05e8397ec7fa02e70a1c5398c9d280dd2117 | |
parent | 294a3755e33f453dd92e2a7c4cfceb087ac09d6a (diff) |
Bug 707789: Remove hacky Windows path "patching"
Automatically "fixing" paths like "c:dir" to be "c:\dir" on Windows is not
sensible, so remove that code.
-rw-r--r-- | base/gpmisc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/base/gpmisc.c b/base/gpmisc.c index ae544ac09..09f6fbb68 100644 --- a/base/gpmisc.c +++ b/base/gpmisc.c @@ -189,16 +189,6 @@ gp_file_name_combine_generic(const char *prefix, uint plen, const char *fname, u } if (!append(&bp, bpe, &ip, rlen)) return gp_combine_small_buffer; - slen = gs_file_name_check_separator(bp, buffer - bp, bp); /* Backward search. */ - if (rlen != 0 && slen == 0) { - /* Patch it against names like "c:dir" on Windows. */ - const char *sep = gp_file_name_directory_separator(); - - slen = strlen(sep); - if (!append(&bp, bpe, &sep, slen)) - return gp_combine_small_buffer; - rlen += slen; - } for (;;) { const char *item = ip; uint ilen; |