mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
Modified the sftp test case so it creates 0700 fil
This commit is contained in:
2
sample.c
2
sample.c
@@ -331,7 +331,7 @@ void do_sftp(SSH_SESSION *session){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* open a file for writing... */
|
/* 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){
|
if(!to){
|
||||||
fprintf(stderr, "Error opening ssh-copy for writing: %s\n",
|
fprintf(stderr, "Error opening ssh-copy for writing: %s\n",
|
||||||
ssh_get_error(session));
|
ssh_get_error(session));
|
||||||
|
|||||||
Reference in New Issue
Block a user