[BACK]Return to sftp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp.c between version 1.119 and 1.120

version 1.119, 2010/01/13 01:40:16 version 1.120, 2010/01/13 04:10:50
Line 1736 
Line 1736 
         }          }
   
         lf = el_line(el);          lf = el_line(el);
         /*  
          * XXX should we really extend here? the user may not be done if  
          * the filename is a directory.  
          */  
         if (g.gl_matchc == 1) {          if (g.gl_matchc == 1) {
                 i = 0;                  i = 0;
                 if (!terminated)                  if (!terminated)
                         ins[i++] = quote;                          ins[i++] = quote;
                 if (lastarg || *(lf->cursor) != ' ')                  if (*(lf->cursor - 1) != '/' &&
                       (lastarg || *(lf->cursor) != ' '))
                         ins[i++] = ' ';                          ins[i++] = ' ';
                 ins[i] = '\0';                  ins[i] = '\0';
                 if (i > 0 && el_insertstr(el, ins) == -1)                  if (i > 0 && el_insertstr(el, ins) == -1)

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120