summaryrefslogtreecommitdiffstats
path: root/sample.c
diff options
context:
space:
mode:
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 4b78820..bd33baf 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));