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

Diff for /src/usr.bin/ssh/sftp-server.c between version 1.3 and 1.4

version 1.3, 2000/09/01 22:32:41 version 1.4, 2000/09/04 19:10:08
Line 198 
Line 198 
         if (a.flags & SSH_FXA_HAVE_SIZE) {          if (a.flags & SSH_FXA_HAVE_SIZE) {
                 a.size_high = get_int();                  a.size_high = get_int();
                 a.size_low = get_int();                  a.size_low = get_int();
                 a.size = (u_int64_t) a.size_high << 32 + a.size_low;                  a.size = (((u_int64_t) a.size_high) << 32) + a.size_low;
         }          }
         if (a.flags & SSH_FXA_HAVE_UGID) {          if (a.flags & SSH_FXA_HAVE_UGID) {
                 a.uid = get_int();                  a.uid = get_int();
Line 548 
Line 548 
         off_low = get_int();          off_low = get_int();
         len = get_int();          len = get_int();
   
         off = (u_int64_t) off_high << 32 + off_low;          off = (((u_int64_t) off_high) << 32) + off_low;
         TRACE("read id %d handle %d off %qd len %d", id, handle, off, len);          TRACE("read id %d handle %d off %qd len %d", id, handle, off, len);
         if (len > sizeof buf) {          if (len > sizeof buf) {
                 len = sizeof buf;                  len = sizeof buf;
Line 590 
Line 590 
         off_low = get_int();          off_low = get_int();
         data = get_string(&len);          data = get_string(&len);
   
         off = (u_int64_t) off_high << 32 + off_low;          off = (((u_int64_t) off_high) << 32) + off_low;
         TRACE("write id %d handle %d off %qd len %d", id, handle, off, len);          TRACE("write id %d handle %d off %qd len %d", id, handle, off, len);
         fd = handle_to_fd(handle);          fd = handle_to_fd(handle);
         if (fd >= 0) {          if (fd >= 0) {
Line 779 
Line 779 
 {  {
         char buf[1024];          char buf[1024];
         snprintf(buf, sizeof buf, "0%o %d %d %qd %d %s",          snprintf(buf, sizeof buf, "0%o %d %d %qd %d %s",
             st->st_mode, st->st_uid, st->st_gid, st->st_size, st->st_mtime,              st->st_mode, st->st_uid, st->st_gid, (long long)st->st_size,(int) st->st_mtime,
             name);              name);
         return xstrdup(buf);          return xstrdup(buf);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4