From c4cf349729899b666b97728c3c66d31b2f4de4e6 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 30 Jun 2009 22:35:01 +0200 Subject: Add logging of the sftp flags used to open a file Should be used to debug weird behaviour when using libssh on windows with different compiler chains. --- libssh/sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh') diff --git a/libssh/sftp.c b/libssh/sftp.c index 4aa63c97..fa8e1214 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -1399,7 +1399,7 @@ SFTP_FILE *sftp_open(SFTP_SESSION *sftp, const char *file, int flags, sftp_flags |= SSH_FXF_TRUNC; if (flags & O_EXCL) sftp_flags |= SSH_FXF_EXCL; - + ssh_log(sftp->session,SSH_LOG_PACKET,"Opening file %s with sftp flags %x",file,sftp_flags); id = sftp_get_new_id(sftp); if (buffer_add_u32(buffer, id) < 0 || buffer_add_ssh_string(buffer, filename) < 0) { -- cgit