* dtable.cc (build_fh_dev): Take additional bool parameter indicating

whether set_name should be called or not.
	(dtable::dup_worker): Call build_fh_pc with new second parameter set
	to false.  Explain why.  If fhandler's dup failed, delete rather than
	cfree newfh and set newfh to NULL to indicate failure correctly.
	* dtable.h (build_fh_pc): Change declaration according to above change.
	Default set_name parameter to true.
	* mmap.cc (mmap_record::free_fh): Delete rather than cfree fh.
This commit is contained in:
Corinna Vinschen
2009-08-20 08:34:21 +00:00
parent 5546e07b4f
commit 1c1b04b84c
4 changed files with 23 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ public:
fhandler_base *build_fh_dev (const device&, const char * = NULL);
fhandler_base *build_fh_name (const char *, HANDLE = NULL, unsigned = 0, suffix_info * = NULL);
fhandler_base *build_fh_name (const UNICODE_STRING *, HANDLE = NULL, unsigned = 0, suffix_info * = NULL);
fhandler_base *build_fh_pc (path_conv& pc);
fhandler_base *build_fh_pc (path_conv& pc, bool set_name = true);
void dtable_init ();
void stdio_init ();