From e671ebcd996c797e3bedae94c9200dcd8cad93f1 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 21 Jun 2009 20:14:10 +0200 Subject: Modified the sftp test case so it creates 0700 fil --- sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3