Fix permissions of upload.

This commit is contained in:
Michael Jumper 2013-10-18 22:13:43 -07:00
parent b9d9a9d324
commit f133cb4caa

View File

@ -464,7 +464,7 @@ int ssh_guac_client_file_handler(guac_client* client, guac_stream* stream,
/* Open file via SFTP */ /* Open file via SFTP */
file = sftp_open(client_data->sftp_session, filename, file = sftp_open(client_data->sftp_session, filename,
O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
/* Inform of status */ /* Inform of status */
if (file != NULL) { if (file != NULL) {