2003-01-10 Corinna Vinschen <corinna@vinschen.de>
+ * path.cc: Revert patch from 2003-01-09 to normalize a windows path
+ rather than converting to posix.
+
+2003-01-10 Corinna Vinschen <corinna@vinschen.de>
+
* autoload.cc (gethostname): Make call optional, return 1 if function
can't get loaded.
* net.cc (cygwin_gethostname): Call GetComputerName if return value
syscall_printf ("src %s", src);
if (isdrive (src) || strpbrk (src, "\\:"))
- return normalize_win32_path (src, dst);
+ {
+ cygwin_conv_to_full_posix_path (src, dst);
+ return 0;
+ }
if (!isslash (src[0]))
{
if (!*p || !p[1])
nextchar = 0;
- else if (*p == '/')
+ else if (isdirsep (*p))
nextchar = -1;
else
nextchar = 1;
{
/* The use of src_path and not pathbuf here is intentional.
We couldn't translate the path, so just ensure no \'s are present. */
- strcpy (posix_path, src_path);
- // slashify (src_path, posix_path, trailing_slash_p);
+ slashify (src_path, posix_path, trailing_slash_p);
}
out: