diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-21 20:14:10 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-21 20:14:10 +0200 |
commit | e671ebcd996c797e3bedae94c9200dcd8cad93f1 (patch) | |
tree | 0a9f01c9d641f1c5132820f6f8e893c44c83c9d2 /sample.c | |
parent | bab8508eba16ffc7a2c1ff6c93c1d4384ae44066 (diff) | |
download | libssh-e671ebcd996c797e3bedae94c9200dcd8cad93f1.tar.gz libssh-e671ebcd996c797e3bedae94c9200dcd8cad93f1.tar.xz libssh-e671ebcd996c797e3bedae94c9200dcd8cad93f1.zip |
Modified the sftp test case so it creates 0700 fil
Diffstat (limited to 'sample.c')
-rw-r--r-- | sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -331,7 +331,7 @@ void do_sftp(SSH_SESSION *session){ return; } /* open a file for writing... */ - to=sftp_open(sftp_session,"ssh-copy",O_WRONLY | O_CREAT, 0); + to=sftp_open(sftp_session,"ssh-copy",O_WRONLY | O_CREAT, 0700); if(!to){ fprintf(stderr, "Error opening ssh-copy for writing: %s\n", ssh_get_error(session)); |