Merge branch '3021_segfault_unowned_temp_dir'
* 3021_segfault_unowned_temp_dir: Ticket #3021: mc segfaults when mc's tempdir doesn't belong to the correct user.
Этот коммит содержится в:
Коммит
86fc45dd40
@ -153,9 +153,6 @@ OS_Setup (void)
|
||||
mc_global.sysconfig_dir = g_strdup (SYSCONFDIR);
|
||||
|
||||
mc_global.share_data_dir = g_strdup (DATADIR);
|
||||
|
||||
/* Set up temporary directory */
|
||||
mc_tmpdir ();
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
@ -298,6 +295,9 @@ main (int argc, char *argv[])
|
||||
vfs_plugins_init ();
|
||||
vfs_setup_work_dir ();
|
||||
|
||||
/* Set up temporary directory after VFS initialization */
|
||||
mc_tmpdir ();
|
||||
|
||||
/* do this after vfs initialization due to mc_setctl() call in mc_setup_by_args() */
|
||||
if (!mc_setup_by_args (argc, argv, &error))
|
||||
{
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user