struct sftp_request *req;
uint64 offset;
RFile *file;
- int ret, err = 0, eof;
+ int err = 0, eof;
struct fxp_attrs attrs;
long permissions;
if (restart) {
char decbuf[30];
struct fxp_attrs attrs;
+ int ret;
req = fxp_fstat_send(fh);
pktin = sftp_wait_for_reply(req);
cleanup:
req = fxp_close_send(fh);
pktin = sftp_wait_for_reply(req);
- ret = fxp_close_recv(pktin, req);
- if (!ret) {
+ if (!fxp_close_recv(pktin, req)) {
if (!err) {
printf("error while closing: %s", fxp_error());
err = 1;
static void version(void)
{
- printf("psftp: %s\n", ver);
+ char *buildinfo_text = buildinfo("\n");
+ printf("psftp: %s\n%s\n", ver, buildinfo_text);
+ sfree(buildinfo_text);
cleanup_exit(1);
}