From fc240f584b02d8bb1a2bb60927c3d13b583c68a1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 22 May 2002 22:09:58 +0000 Subject: * fhandler.h (fhandler_virtual::exists): Eliminate path argument. (fhandler_proc::exists): Ditto. (fhandler_registry::exists): Ditto. (fhandler_process::exists): Ditto. * fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name. * fhandler_process.cc (fhandler_process::exists): Ditto. (fstat): Ditto. * fhandler_registry.cc (fhandler_registry::exists): Ditto. (fhandler_registry::fstat): Ditto. * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto. * path.cc (path_conv::check): Ditto. Add debugging. * syscalls.cc (dup): Always call dup2 for error handling. --- winsup/cygwin/path.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 3c2be696f..2f2c19b61 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -520,7 +520,7 @@ path_conv::check (const char *src, unsigned opt, /* FIXME: Calling build_fhandler here is not the right way to handle this. */ fhandler_virtual *fh = (fhandler_virtual *) cygheap->fdtab.build_fhandler (-1, devn, path_copy, NULL, unit); - int file_type = fh->exists (path_copy); + int file_type = fh->exists (); switch (file_type) { case 1: @@ -725,7 +725,10 @@ path_conv::check (const char *src, unsigned opt, out: if (opt & PC_POSIX) - normalized_path = cstrdup (path_copy); + { + normalized_path = cstrdup (path_copy); + debug_printf ("path_copy %s", path_copy); + } /* Deal with Windows stupidity which considers filename\. to be valid even when "filename" is not a directory. */ if (!need_directory || error) -- cgit v1.2.3