aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-21 20:14:10 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-06-21 20:14:10 +0200
commite671ebcd996c797e3bedae94c9200dcd8cad93f1 (patch)
tree0a9f01c9d641f1c5132820f6f8e893c44c83c9d2 /sample.c
parentbab8508eba16ffc7a2c1ff6c93c1d4384ae44066 (diff)
downloadlibssh-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index 4b78820a..bd33baff 100644
--- a/sample.c
+++ b/sample.c
@@ -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));