Ticket #3658: main.c.patch

File main.c.patch, 491 bytes (added by Snelius, 13 months ago)

Fix path

  • src/main.c

    old new  
    362362 
    363363#ifdef ENABLE_SUBSHELL 
    364364    /* Disallow subshell when invoked as standalone viewer or editor from running mc */ 
    365     if (mc_global.mc_run_mode != MC_RUN_FULL && mc_global.run_from_parent_mc) 
     365    if (mc_global.shell->type == SHELL_SH || (mc_global.mc_run_mode != MC_RUN_FULL && mc_global.run_from_parent_mc)) 
    366366        mc_global.tty.use_subshell = FALSE; 
    367367 
    368368    if (mc_global.tty.use_subshell)