[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.63 and 1.64

version 1.63, 2005/03/10 22:01:05 version 1.64, 2005/06/17 02:44:33
Line 399 
Line 399 
 {  {
         const char *cp = *cpp, *end;          const char *cp = *cpp, *end;
         char quot;          char quot;
         int i, j;          u_int i, j;
   
         cp += strspn(cp, WHITESPACE);          cp += strspn(cp, WHITESPACE);
         if (!*cp) {          if (!*cp) {
Line 659 
Line 659 
 static int  static int
 do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag)  do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag)
 {  {
         int n, c = 1, colspace = 0, columns = 1;          int n;
           u_int c = 1, colspace = 0, columns = 1;
         SFTP_DIRENT **d;          SFTP_DIRENT **d;
   
         if ((n = do_readdir(conn, path, &d)) != 0)          if ((n = do_readdir(conn, path, &d)) != 0)
                 return (n);                  return (n);
   
         if (!(lflag & LS_SHORT_VIEW)) {          if (!(lflag & LS_SHORT_VIEW)) {
                 int m = 0, width = 80;                  u_int m = 0, width = 80;
                 struct winsize ws;                  struct winsize ws;
                 char *tmp;                  char *tmp;
   
Line 742 
Line 743 
     int lflag)      int lflag)
 {  {
         glob_t g;          glob_t g;
         int i, c = 1, colspace = 0, columns = 1;          u_int i, c = 1, colspace = 0, columns = 1;
         Attrib *a = NULL;          Attrib *a = NULL;
   
         memset(&g, 0, sizeof(g));          memset(&g, 0, sizeof(g));
Line 778 
Line 779 
         }          }
   
         if (!(lflag & LS_SHORT_VIEW)) {          if (!(lflag & LS_SHORT_VIEW)) {
                 int m = 0, width = 80;                  u_int m = 0, width = 80;
                 struct winsize ws;                  struct winsize ws;
   
                 /* Count entries for sort and find longest filename */                  /* Count entries for sort and find longest filename */

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64