aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-06 19:43:23 +0300
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-13 14:03:35 +0300
commit4b363928f6a29e9cf2f2f33b86cb860ef0ab4dec (patch)
treef73c87a650cda30c47b1b1195af64deeccd8f172 /examples
parent929f5ca25b56ce46bf49e9a44d40bab3ef2d6076 (diff)
downloadlibssh-4b363928f6a29e9cf2f2f33b86cb860ef0ab4dec.tar.gz
libssh-4b363928f6a29e9cf2f2f33b86cb860ef0ab4dec.tar.xz
libssh-4b363928f6a29e9cf2f2f33b86cb860ef0ab4dec.zip
SCP warning request
Diffstat (limited to 'examples')
-rw-r--r--examples/scp_download.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/scp_download.c b/examples/scp_download.c
index 9da3aafd..52587b57 100644
--- a/examples/scp_download.c
+++ b/examples/scp_download.c
@@ -111,8 +111,9 @@ static int fetch_files(ssh_session session){
break;
case SSH_ERROR:
fprintf(stderr,"Error: %s\n",ssh_get_error(session));
- if(ssh_get_error_code(session)!=SSH_REQUEST_DENIED)
- return -1;
+ return -1;
+ case SSH_SCP_REQUEST_WARNING:
+ fprintf(stderr,"Warning: %s\n",ssh_scp_request_get_warning(scp));
break;
case SSH_SCP_REQUEST_NEWDIR:
filename=strdup(ssh_scp_request_get_filename(scp));