[openssh-commits] [openssh] 01/01: upstream: sftp-client.c needs poll.h

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Aug 7 11:57:21 AEST 2021


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 85de69f64665245786e28c81ab01fe18b0e2a149
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Sat Aug 7 01:55:01 2021 +0000

    upstream: sftp-client.c needs poll.h
    
    remove unused variable
    
    OpenBSD-Commit-ID: 233ac6c012cd23af62f237167a661db391055a16
---
 sftp-client.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sftp-client.c b/sftp-client.c
index 0cfc1f0d..943d142f 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.151 2021/08/07 00:14:17 djm Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.152 2021/08/07 01:55:01 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm at openbsd.org>
  *
@@ -2149,7 +2149,7 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to,
     Attrib *a, int preserve_flag)
 {
 	struct sshbuf *msg;
-	int write_error, read_error, lmodified = 0, r;
+	int write_error, read_error, r;
 	u_int64_t offset = 0, size;
 	u_int id, buflen, num_req, max_req, status = SSH2_FX_OK;
 	u_int num_upload_req;
@@ -2271,7 +2271,6 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to,
 			if (len > req->len)
 				fatal("Received more data than asked for "
 				    "%zu > %zu", len, req->len);
-			lmodified = 1;
 
 			/* Write this chunk out to the destination */
 			sshbuf_reset(msg);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list