File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ rm -f $OBJ/sshd_proxy.orig
9
9
cp $OBJ /sshd_proxy $OBJ /sshd_proxy.orig
10
10
11
11
verbose " no timeout"
12
- ${SSH} -vvv - F $OBJ /ssh_proxy somehost " sleep 5 ; exit 23"
12
+ ${SSH} -F $OBJ /ssh_proxy somehost " sleep 5 ; exit 23"
13
13
r=$?
14
14
if [ $r -ne 23 ]; then
15
15
fail " ssh failed"
@@ -19,7 +19,7 @@ verbose "command timeout"
19
19
(cat $OBJ /sshd_proxy.orig ; echo " ChannelTimeout session:command=1" ) \
20
20
> $OBJ /sshd_proxy
21
21
verbose " ${SSH} -vvv -F $OBJ /ssh_proxy somehost"
22
- ${SSH} -vvv - F $OBJ /ssh_proxy somehost " sleep 5 ; exit 23"
22
+ ${SSH} -F $OBJ /ssh_proxy somehost " sleep 5 ; exit 23"
23
23
r=$?
24
24
# return value is -1 which is being mapped back to 127 instead of 255 for some reason
25
25
if [ $r -ne 127 ]; then
Original file line number Diff line number Diff line change @@ -185,8 +185,9 @@ pid_t do_cmd_pid2 = -1;
185
185
186
186
/* SFTP copy parameters */
187
187
#ifdef WINDOWS
188
- // match DEFAULT_COPY_BUFLEN from sftp-client.c unless overriden below with -X input
189
- size_t sftp_copy_buflen = 32768 ;
188
+ #define MAX_SFTP_COPY_BUFLEN 204800
189
+ #define DEFAULT_COPY_BUFLEN 32768
190
+ size_t sftp_copy_buflen = DEFAULT_COPY_BUFLEN ;
190
191
#else
191
192
size_t sftp_copy_buflen ;
192
193
#endif // WINDOWS
@@ -776,13 +777,12 @@ main(int argc, char **argv)
776
777
}
777
778
sftp_copy_buflen = (size_t )llv ;
778
779
#ifdef WINDOWS
779
- size_t max_sftp_buf_len = 204800 ;
780
- if (sftp_copy_buflen > max_sftp_buf_len ) {
780
+ if (sftp_copy_buflen > MAX_SFTP_COPY_BUFLEN ) {
781
781
if (verbose_mode )
782
782
fmprintf (stderr ,
783
783
"Buffer value of %d is too large for Win32-OpenSSH. Setting buffer to %d\n" ,
784
- sftp_copy_buflen , max_sftp_buf_len );
785
- sftp_copy_buflen = max_sftp_buf_len ;
784
+ sftp_copy_buflen , MAX_SFTP_COPY_BUFLEN );
785
+ sftp_copy_buflen = MAX_SFTP_COPY_BUFLEN ;
786
786
}
787
787
#endif // WINDOWS
788
788
} else if (strncmp (optarg , "nrequests=" , 10 ) == 0 ) {
You can’t perform that action at this time.
0 commit comments