Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-23 02:09:58 +0400
committerChristopher Faylor <me@cgf.cx>2002-05-23 02:09:58 +0400
commitfc240f584b02d8bb1a2bb60927c3d13b583c68a1 (patch)
treee2905ee758c0cb0d17479f6422fedc4f84352e1d /winsup/cygwin/path.cc
parent41dc93916139473204dcfeea91cefbdf8f696301 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc7
1 files changed, 5 insertions, 2 deletions
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)