* child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo for
NULL before closing. * spawn.cc (spawn_guts): Don't close moreinfo->myself_pinfo explicitely in case of failing CloseProcess. * fhandler.cc (fhandler_base::open_): Return EISDIR when trying to create a directory. * path.cc (path_conv::check): If input path had a trailing dir separator, tack it on to the native path if directory doesn't exist.
This commit is contained in:
@@ -125,7 +125,7 @@ public:
|
||||
cfree (*e);
|
||||
cfree (moreinfo->envp);
|
||||
}
|
||||
if (type != _PROC_SPAWN)
|
||||
if (type != _PROC_SPAWN && moreinfo->myself_pinfo)
|
||||
CloseHandle (moreinfo->myself_pinfo);
|
||||
cfree (moreinfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user