aboutsummaryrefslogtreecommitdiffstats
path: root/src/stringutils.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-04-22 14:56:56 +0000
committerWerner Koch <[email protected]>2025-04-22 15:04:07 +0000
commit65114f24e13f835a289f791ed7a5e408b2843d59 (patch)
tree60b66e9337682cddd59885e23d4f02de4de72e79 /src/stringutils.c
parentMark the initializations with __nonstring__ attribute. (diff)
downloadlibgpg-error-65114f24e13f835a289f791ed7a5e408b2843d59.tar.gz
libgpg-error-65114f24e13f835a289f791ed7a5e408b2843d59.zip
w32: More changes to the extended length path handling.
* src/sysutils.c (has_path_separator): New. (_gpgrt_fname_to_wchar): Rewrite to add the prefix only when needed. ---- GetFullPathNameW has no MAX_PATH limit and thus can be used with any input. We now prefix the resulting absolute path after the call to GFPN. This allows to check whether the CWD is an UNC and thus use the right prefix. We also don't run the entire thing for just a drive letter etc and further skip the prefix if the absolute path is less than MAX_PATH. This gives better backward compatibility. There is also now a GPGRT_DISABLE_EXTLENPATH=-2 which does not disable the extended path handling but enables debug output. To actually disable the feature a positive value must be used. Updates-commit 28ae4ee194ec56e98123d3aceda130161dfd2df8 GnuPG-bug-id: 5754
Diffstat (limited to 'src/stringutils.c')
0 files changed, 0 insertions, 0 deletions