various error conditions.
git-svn-id: svn://svn.tartarus.org/sgt/putty@8109
cda61777-01e9-0310-a592-
d414129be87e
if (restart) {
char decbuf[30];
if (seek_file(file, uint64_make(0,0) , FROM_END) == -1) {
if (restart) {
char decbuf[30];
if (seek_file(file, uint64_make(0,0) , FROM_END) == -1) {
printf("reget: cannot restart %s - file too large\n",
outfname);
printf("reget: cannot restart %s - file too large\n",
outfname);
- sftp_register(req = fxp_close_send(fh));
- rreq = sftp_find_request(pktin = sftp_recv());
- assert(rreq == req);
- fxp_close_recv(pktin, rreq);
+ sftp_register(req = fxp_close_send(fh));
+ rreq = sftp_find_request(pktin = sftp_recv());
+ assert(rreq == req);
+ fxp_close_recv(pktin, rreq);
}
offset = get_file_posn(file);
}
offset = get_file_posn(file);
fh = fxp_open_recv(pktin, rreq);
if (!fh) {
fh = fxp_open_recv(pktin, rreq);
if (!fh) {
printf("%s: open for write: %s\n", outfname, fxp_error());
return 0;
}
printf("%s: open for write: %s\n", outfname, fxp_error());
return 0;
}
ret = fxp_fstat_recv(pktin, rreq, &attrs);
if (!ret) {
ret = fxp_fstat_recv(pktin, rreq, &attrs);
if (!ret) {
printf("read size of %s: %s\n", outfname, fxp_error());
return 0;
}
if (!(attrs.flags & SSH_FILEXFER_ATTR_SIZE)) {
printf("read size of %s: %s\n", outfname, fxp_error());
return 0;
}
if (!(attrs.flags & SSH_FILEXFER_ATTR_SIZE)) {
printf("read size of %s: size was not given\n", outfname);
return 0;
}
printf("read size of %s: size was not given\n", outfname);
return 0;
}