Ticket #2056: 0001-Don-t-propose-.-as-a-dirname-using-mkdir-command-wit.patch

File 0001-Don-t-propose-.-as-a-dirname-using-mkdir-command-wit.patch, 824 bytes (added by cosoleto, 12 years ago)
  • src/cmd.c

    From 7234d6897ec0c6f9204aa23c4be76646d76fb562 Mon Sep 17 00:00:00 2001
    From: Francesco Cosoleto <cosoleto@gmail.com>
    Date: Tue, 16 Feb 2010 02:53:55 +0100
    Subject: [PATCH] Don't propose ".." as a dirname using mkdir command with automatic name filling enabled
    
    Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
    ---
     src/cmd.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/cmd.c b/src/cmd.c
    index 05635b5..99e953d 100644
    a b mkdir_cmd (void) 
    388388    const char *name = ""; 
    389389 
    390390    /* If 'on' then automatically fills name with current selected item name */ 
    391     if (auto_fill_mkdir_name) 
     391    if (auto_fill_mkdir_name && strcmp(selection(current_panel)->fname, "..")) 
    392392        name = selection (current_panel)->fname; 
    393393 
    394394    dir =