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

Diff for /src/usr.bin/ssh/sftp-client.c between version 1.40 and 1.41

version 1.40, 2003/01/10 08:48:15 version 1.41, 2003/01/14 10:58:00
Line 767 
Line 767 
                 mode = 0666;                  mode = 0666;
   
         if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&          if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
             (a->perm & S_IFDIR)) {              (!S_ISREG(a->perm))) {
                 error("Cannot download a directory: %s", remote_path);                  error("Cannot download non-regular file: %s", remote_path);
                 return(-1);                  return(-1);
         }          }
   
Line 995 
Line 995 
         if (fstat(local_fd, &sb) == -1) {          if (fstat(local_fd, &sb) == -1) {
                 error("Couldn't fstat local file \"%s\": %s",                  error("Couldn't fstat local file \"%s\": %s",
                     local_path, strerror(errno));                      local_path, strerror(errno));
                   close(local_fd);
                   return(-1);
           }
           if (!S_ISREG(sb.st_mode)) {
                   error("%s is not a regular file", local_path);
                 close(local_fd);                  close(local_fd);
                 return(-1);                  return(-1);
         }          }

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41