version 1.51, 2004/07/11 17:48:47 |
version 1.51.2.2, 2005/06/05 02:22:39 |
|
|
int status = buffer_get_int(&msg); |
int status = buffer_get_int(&msg); |
|
|
error("Couldn't get handle: %s", fx2txt(status)); |
error("Couldn't get handle: %s", fx2txt(status)); |
|
buffer_free(&msg); |
return(NULL); |
return(NULL); |
} else if (type != SSH2_FXP_HANDLE) |
} else if (type != SSH2_FXP_HANDLE) |
fatal("Expected SSH2_FXP_HANDLE(%u) packet, got %u", |
fatal("Expected SSH2_FXP_HANDLE(%u) packet, got %u", |
|
|
debug("Couldn't stat remote file: %s", fx2txt(status)); |
debug("Couldn't stat remote file: %s", fx2txt(status)); |
else |
else |
error("Couldn't stat remote file: %s", fx2txt(status)); |
error("Couldn't stat remote file: %s", fx2txt(status)); |
|
buffer_free(&msg); |
return(NULL); |
return(NULL); |
} else if (type != SSH2_FXP_ATTRS) { |
} else if (type != SSH2_FXP_ATTRS) { |
fatal("Expected SSH2_FXP_ATTRS(%u) packet, got %u", |
fatal("Expected SSH2_FXP_ATTRS(%u) packet, got %u", |
|
|
debug3("Received reply T:%u I:%u R:%d", type, id, max_req); |
debug3("Received reply T:%u I:%u R:%d", type, id, max_req); |
|
|
/* Find the request in our queue */ |
/* Find the request in our queue */ |
for(req = TAILQ_FIRST(&requests); |
for (req = TAILQ_FIRST(&requests); |
req != NULL && req->id != id; |
req != NULL && req->id != id; |
req = TAILQ_NEXT(req, tq)) |
req = TAILQ_NEXT(req, tq)) |
; |
; |
|
|
debug3("SSH2_FXP_STATUS %d", status); |
debug3("SSH2_FXP_STATUS %d", status); |
|
|
/* Find the request in our queue */ |
/* Find the request in our queue */ |
for(ack = TAILQ_FIRST(&acks); |
for (ack = TAILQ_FIRST(&acks); |
ack != NULL && ack->id != r_id; |
ack != NULL && ack->id != r_id; |
ack = TAILQ_NEXT(ack, tq)) |
ack = TAILQ_NEXT(ack, tq)) |
; |
; |