summaryrefslogtreecommitdiff
path: root/general.c
diff options
context:
space:
mode:
Diffstat (limited to 'general.c')
-rw-r--r--general.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/general.c b/general.c
index 446e42f4..1a83e8f5 100644
--- a/general.c
+++ b/general.c
@@ -470,7 +470,16 @@ make_absolute (string, dot_path)
char *result;
if (dot_path == 0 || ABSPATH(string))
+#ifdef __CYGWIN__
+ {
+ char pathbuf[PATH_MAX + 1];
+
+ cygwin_conv_to_full_posix_path (string, pathbuf);
+ result = savestring (pathbuf);
+ }
+#else
result = savestring (string);
+#endif
else
result = sh_makepath (dot_path, string, 0);