summaryrefslogtreecommitdiffstats
path: root/common/t-stringhelp.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
commite7fd617327ed9d30f093a78a016511ab5c984ba4 (patch)
treebb534b4fd912969c90022ad00726253be891ad8a /common/t-stringhelp.c
parentReleasing progress-linux version 2.2.40-3~progress7.99u1. (diff)
downloadgnupg2-e7fd617327ed9d30f093a78a016511ab5c984ba4.tar.xz
gnupg2-e7fd617327ed9d30f093a78a016511ab5c984ba4.zip
Merging upstream version 2.2.43.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--common/t-stringhelp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/t-stringhelp.c b/common/t-stringhelp.c
index d76991f..7d25cbd 100644
--- a/common/t-stringhelp.c
+++ b/common/t-stringhelp.c
@@ -89,7 +89,15 @@ mygetcwd (void)
return buffer;
#else
if (getcwd (buffer, size) == buffer)
- return buffer;
+ {
+#ifdef HAVE_W32_SYSTEM
+ char *p;
+ for (p = buffer; *p; p++)
+ if (*p == '\\')
+ *p = '/';
+#endif
+ return buffer;
+ }
xfree (buffer);
if (errno != ERANGE)
{