components/proftpd/patches/18845170.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 31 Jul 2014 12:11:52 -0700
branchs11u2-sru
changeset 3244 5fe7a1d88248
parent 3234 1de12229da80
permissions -rw-r--r--
19000542 tcsh represents garbled letters to standard error after installing SRU17.5 18590021 array name doesn't support multi-byte characters in tcsh

http://bugs.proftpd.org/show_bug.cgi?id=4069
https://github.com/proftpd/proftpd/commit/38cf9e5028cbddee2b0dcba436d60199da1edf80

--- a/modules/mod_ls.c
+++ b/modules/mod_ls.c
@@ -2755,6 +2755,13 @@ MODRET ls_nlst(cmd_rec *cmd) {
     parse_list_opts(&list_options, &glob_flags, TRUE);
   }
 
+  /* If, after parsing out any options, the target string is empty, assume
+   * the current directory (Bug#4069).
+   */
+  if (*target == '\0') {
+    target = pstrdup(cmd->tmp_pool, ".");
+  }
+
   /* If the target starts with '~' ... */
   if (*target == '~') {
     char pb[PR_TUNABLE_PATH_MAX + 1] = {'\0'};