aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftp.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-30 22:35:01 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-06-30 22:35:01 +0200
commitc4cf349729899b666b97728c3c66d31b2f4de4e6 (patch)
treefd24c0ed98923a28906b3933da91efa50c5a6dbf /libssh/sftp.c
parent2c99566697d4757e95ba440d1ba40f8302b77799 (diff)
downloadlibssh-c4cf349729899b666b97728c3c66d31b2f4de4e6.tar.gz
libssh-c4cf349729899b666b97728c3c66d31b2f4de4e6.tar.xz
libssh-c4cf349729899b666b97728c3c66d31b2f4de4e6.zip
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.
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r--libssh/sftp.c2
1 files changed, 1 insertions, 1 deletions
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) {