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

Diff for /src/usr.bin/ssh/sftp-glob.c between version 1.31 and 1.32

version 1.31, 2022/10/24 21:51:55 version 1.32, 2023/09/08 05:56:13
Line 48 
Line 48 
   
         r = xcalloc(1, sizeof(*r));          r = xcalloc(1, sizeof(*r));
   
         if (do_readdir(cur.conn, path, &r->dir)) {          if (sftp_readdir(cur.conn, path, &r->dir)) {
                 free(r);                  free(r);
                 return(NULL);                  return(NULL);
         }          }
Line 76 
Line 76 
 static void  static void
 fudge_closedir(struct SFTP_OPENDIR *od)  fudge_closedir(struct SFTP_OPENDIR *od)
 {  {
         free_sftp_dirents(od->dir);          sftp_free_dirents(od->dir);
         free(od);          free(od);
 }  }
   
 static int  static int
 fudge_lstat(const char *path, struct stat *st)  fudge_lstat(const char *path, struct stat *st)
 {  {
         Attrib *a;          Attrib a;
   
         if (!(a = do_lstat(cur.conn, path, 1)))          if (sftp_lstat(cur.conn, path, 1, &a) != 0)
                 return(-1);                  return -1;
   
         attrib_to_stat(a, st);          attrib_to_stat(&a, st);
   
         return(0);          return 0;
 }  }
   
 static int  static int
 fudge_stat(const char *path, struct stat *st)  fudge_stat(const char *path, struct stat *st)
 {  {
         Attrib *a;          Attrib a;
   
         if (!(a = do_stat(cur.conn, path, 1)))          if (sftp_stat(cur.conn, path, 1, &a) != 0)
                 return(-1);                  return -1;
   
         attrib_to_stat(a, st);          attrib_to_stat(&a, st);
   
         return(0);          return(0);
 }  }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32