diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Makefile.am | 5 | ||||
-rw-r--r-- | common/t-stringhelp.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/common/Makefile.am b/common/Makefile.am index bd281d603..1cc89a08f 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -169,11 +169,10 @@ module_tests = t-stringhelp t-timestuff \ t-session-env t-openpgp-oid t-ssh-utils \ t-mapstrings t-zb32 t-mbox-util t-iobuf t-strlist \ t-name-value t-ccparray t-recsel t-w32-cmdline -if !HAVE_W32CE_SYSTEM -module_tests += t-exechelp t-exectool -endif if HAVE_W32_SYSTEM module_tests += t-w32-reg +else +module_tests += t-exechelp t-exectool endif if MAINTAINER_MODE diff --git a/common/t-stringhelp.c b/common/t-stringhelp.c index d76991f91..7d25cbd18 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) { |