Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kroker 用ブランチ #6

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN apk add --no-cache \
libtool \
libwebp-dev \
make \
openssl1.1-compat-dev \
openssl-dev \
pango-dev \
pulseaudio-dev \
util-linux-dev
Expand Down
2 changes: 1 addition & 1 deletion bin/guacctl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ error() {
##
usage() {
cat >&2 <<END
guacctl 1.5.3, Apache Guacamole terminal session control utility.
guacctl 1.5.3-fp.2, Apache Guacamole terminal session control utility.
Usage: guacctl [OPTION] [FILE or NAME]...

-d, --download download each of the files listed.
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

AC_PREREQ([2.61])
AC_INIT([guacamole-server], [1.5.3])
AC_INIT([guacamole-server], [1.5.3-fp.2])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AM_SILENT_RULES([yes])
Expand Down
11 changes: 9 additions & 2 deletions src/common-ssh/sftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ static int guac_common_ssh_sftp_ack_handler(guac_user* user,
if (status == GUAC_PROTOCOL_STATUS_SUCCESS) {

/* Attempt read into buffer */
char buffer[4096];
char buffer[1024*64];
int bytes_read = libssh2_sftp_read(file, buffer, sizeof(buffer));

/* If bytes read, send as blob */
Expand Down Expand Up @@ -515,9 +515,16 @@ static int guac_common_ssh_sftp_ack_handler(guac_user* user,
}

/* Otherwise, return stream to user */
else
else {
guac_user_free_stream(user, stream);

/* Close file */
if (libssh2_sftp_close(file) == 0)
guac_user_log(user, GUAC_LOG_DEBUG, "File closed");
else
guac_user_log(user, GUAC_LOG_INFO, "Unable to close file");
}

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions src/protocols/telnet/telnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static const telnet_telopt_t __telnet_options[] = {
{ TELNET_TELOPT_MSSP, TELNET_WONT, TELNET_DO },
{ TELNET_TELOPT_NAWS, TELNET_WILL, TELNET_DONT },
{ TELNET_TELOPT_NEW_ENVIRON, TELNET_WILL, TELNET_DONT },
{ TELNET_TELOPT_SGA, TELNET_WILL, TELNET_DO },
{ -1, 0, 0 }
};

Expand Down
Loading