Ticket #3983: createstreams.patch

File createstreams.patch, 1.4 KB (added by howaboutsynergy, 5 years ago)
  • lib/utilunix.c

    Cannot create pipe streams
    https://github.com/MidnightCommander/mc/pull/59
    
    diff --git a/lib/utilunix.c b/lib/utilunix.c
    index 0499525..d8fc0f6 100644
    a b mc_popen (const char *command, GError ** error) 
    524524        (NULL, (gchar **) argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_FILE_AND_ARGV_ZERO, 
    525525         NULL, NULL, &p->child_pid, NULL, &p->out.fd, &p->err.fd, error)) 
    526526    { 
    527         mc_replace_error (error, MC_PIPE_ERROR_CREATE_PIPE_STREAM, "%s", 
    528                           _("Cannot create pipe streams")); 
     527/*        mc_replace_error (error, MC_PIPE_ERROR_CREATE_PIPE_STREAM, "%s", 
     528                          //_("Cannot create pipe streams") 
     529argv[3] 
     530                          );*/ 
    529531        goto ret_err; 
    530532    } 
    531533 
  • src/filemanager/ext.c

    diff --git a/src/filemanager/ext.c b/src/filemanager/ext.c
    index 9cf8c9b..7d195c1 100644
    a b exec_extension (void *target, const vfs_path_t * filename_vpath, const char *lc_ 
    486486        /* Set executable flag on the command file ... */ 
    487487        mc_chmod (script_vpath, S_IRWXU); 
    488488        /* ... but don't rely on it - run /bin/sh explicitly */ 
    489         cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL); 
     489        cmd = g_strconcat ("", vfs_path_as_str (script_vpath), (char *) NULL); 
    490490    } 
    491491 
    492492    if (run_view)