[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.17 and 1.18

version 1.17, 2001/02/04 15:32:25 version 1.18, 2001/02/04 22:21:19
Line 557 
Line 557 
                 if (ret == -1)                  if (ret == -1)
                         status = errno_to_portable(errno);                          status = errno_to_portable(errno);
         }          }
           if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
                   ret = chown(name, a->uid, a->gid);
                   if (ret == -1)
                           status = errno_to_portable(errno);
           }
         send_status(id, status);          send_status(id, status);
         xfree(name);          xfree(name);
 }  }
Line 584 
Line 589 
                 }                  }
                 if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) {                  if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) {
                         ret = futimes(fd, attrib_to_tv(a));                          ret = futimes(fd, attrib_to_tv(a));
                           if (ret == -1)
                                   status = errno_to_portable(errno);
                   }
                   if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
                           ret = fchown(fd, a->uid, a->gid);
                         if (ret == -1)                          if (ret == -1)
                                 status = errno_to_portable(errno);                                  status = errno_to_portable(errno);
                 }                  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18