Ticket #275: 0001-add-exit-point-to-panelized-filter-in-top-list.patch

File 0001-add-exit-point-to-panelized-filter-in-top-list.patch, 1.0 KB (added by angel_il, 15 years ago)
  • src/panelize.c

    From 35b5f18ddf50f588442cbd209e71bb4e10a0f9d4 Mon Sep 17 00:00:00 2001
    From: Ilia Maslakov <il.smind@gmail.com>
    Date: Thu, 19 Feb 2009 20:00:41 +0000
    Subject: [PATCH] add exit point to panelized filter (in top list)
    
    ---
     src/panelize.c |   10 ++++++++++
     1 files changed, 10 insertions(+), 0 deletions(-)
    
    diff --git a/src/panelize.c b/src/panelize.c
    index 5bbf643..74ef6f0 100644
    a b static void do_external_panelize (char *command) 
    374374    /* Clear the counters and the directory list */ 
    375375    panel_clean_dir (current_panel); 
    376376 
     377    /* Add exit point */ 
     378    list->list[next_free].fnamelen = 1; 
     379    list->list[next_free].fname = g_strdup ("."); 
     380    list->list[next_free].f.link_to_dir = 0; 
     381    list->list[next_free].f.stale_link = 0; 
     382    list->list[next_free].f.dir_size_computed = 0; 
     383    list->list[next_free].f.marked = 0; 
     384    list->list[next_free].st.st_mode = 040755; 
     385    next_free++; 
     386 
    377387    while (1) { 
    378388        clearerr(external); 
    379389        if (fgets (line, MC_MAXPATHLEN, external) == NULL) {