summaryrefslogtreecommitdiffstats
path: root/common/t-stringhelp.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-04-06 04:28:00 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-04-06 04:28:00 +0200
commit39d478f5ba5d74cdd1d2e40311ff120c932bac37 (patch)
treef5ad2b34666e29f226222c2eaf0de7749a86994c /common/t-stringhelp.c
parentagent:w32: Fix for use of socket. (diff)
downloadgnupg2-39d478f5ba5d74cdd1d2e40311ff120c932bac37.tar.xz
gnupg2-39d478f5ba5d74cdd1d2e40311ff120c932bac37.zip
w32: Fix for make check.
* common/Makefile.am (module_tests): Exclude t-exechelp and t-exectool. * common/t-stringhelp.c (mygetcwd): Convert '\' to '/'. * tests/cms/Makefile.am: Add $(EXEEXT). * tests/gpgme/Makefile.am: Likewise. * tests/migrations/Makefile.am: Likewise. * tests/openpgp/Makefile.am: Likewise. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common/t-stringhelp.c')
-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 8d0c1c576..4086f8c3d 100644
--- a/common/t-stringhelp.c
+++ b/common/t-stringhelp.c
@@ -88,7 +88,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)
{