summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dtable.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-03 02:43:45 +0000
committerChristopher Faylor <me@cgf.cx>2002-05-03 02:43:45 +0000
commit335c87f94dc73e6d6dbe5d29d59a1c221373bcbc (patch)
tree455a126eca0454932a47cf441272bfb7154c5232 /winsup/cygwin/dtable.cc
parent3bb7eb449cb21012ce47b70dce789f98005c36fd (diff)
downloadcygnal-335c87f94dc73e6d6dbe5d29d59a1c221373bcbc.tar.gz
cygnal-335c87f94dc73e6d6dbe5d29d59a1c221373bcbc.tar.bz2
cygnal-335c87f94dc73e6d6dbe5d29d59a1c221373bcbc.zip
* fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather than
path_conv name. (fhandler_proc::open): Ditto. * fhandler_process.cc (fhandler_process::fstat): Use fhandler name rather than path_conv name. (fhandler_process::open): Ditto. * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name rather than path_conv name. (fhandler_registry::open): Ditto. * path.cc (path_conv::check): Don't copy posix path when virtual. (mount_info::conv_to_win32_path): Don't zero string when isproc. Just derive normal windows path. * path.h (path_conv::clear_normalized_path): Declare new method. * path.cc (path_conv::clear_normalized_path): Define new method. * dtable.cc (build_fhandler_from_name): Clear normalized path when finished to conserve space.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 93d5602fd..e4f2ddfbc 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -287,7 +287,9 @@ dtable::build_fhandler_from_name (int fd, const char *name, HANDLE handle,
return NULL;
}
- return build_fhandler (fd, pc.get_devn (), pc.normalized_path, pc, pc.get_unitn ());
+ fhandler_base *fh = build_fhandler (fd, pc.get_devn (), pc.normalized_path, pc, pc.get_unitn ());
+ pc.clear_normalized_path ();
+ return fh;
}
#define cnew(name) new ((void *) ccalloc (HEAP_FHANDLER, 1, sizeof (name))) name