mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +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;
|
||||
}
|
||||
/* 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));
|
||||
|
||||
Reference in New Issue
Block a user