components/proftpd/patches/006.18845170.patch
changeset 5856 0f3d50fefade
parent 5855 986a46fa92f7
child 5857 69ef2ba78708
equal deleted inserted replaced
5855:986a46fa92f7 5856:0f3d50fefade
     1 http://bugs.proftpd.org/show_bug.cgi?id=4069
       
     2 https://github.com/proftpd/proftpd/commit/38cf9e5028cbddee2b0dcba436d60199da1edf80
       
     3 
       
     4 --- a/modules/mod_ls.c
       
     5 +++ b/modules/mod_ls.c
       
     6 @@ -2755,6 +2755,13 @@ MODRET ls_nlst(cmd_rec *cmd) {
       
     7      parse_list_opts(&list_options, &glob_flags, TRUE);
       
     8    }
       
     9  
       
    10 +  /* If, after parsing out any options, the target string is empty, assume
       
    11 +   * the current directory (Bug#4069).
       
    12 +   */
       
    13 +  if (*target == '\0') {
       
    14 +    target = pstrdup(cmd->tmp_pool, ".");
       
    15 +  }
       
    16 +
       
    17    /* If the target starts with '~' ... */
       
    18    if (*target == '~') {
       
    19      char pb[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
       
    20