* 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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user