diff options
Diffstat (limited to 'apps/examples/ftpc/ftpc_cmds.c')
-rw-r--r-- | apps/examples/ftpc/ftpc_cmds.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/examples/ftpc/ftpc_cmds.c b/apps/examples/ftpc/ftpc_cmds.c index df05f45d2..d5dba926a 100644 --- a/apps/examples/ftpc/ftpc_cmds.c +++ b/apps/examples/ftpc/ftpc_cmds.c @@ -116,6 +116,7 @@ int cmd_rpwd(SESSION handle, int argc, char **argv) free(pwd); return OK; } + return ERROR; } @@ -275,6 +276,7 @@ int cmd_rls(SESSION handle, int argc, char **argv) { printf(" %s\n", dirlist->name[i]); } + FFLUSH(); /* We are responsible for freeing the directory structure allocated by @@ -308,7 +310,7 @@ int cmd_rget(SESSION handle, int argc, char **argv) } else { - printf("%s: Unrecognized option: '%c'\n", "put", option); + printf("%s: Unrecognized option: '%c'\n", "rget", option); return ERROR; } } @@ -317,7 +319,7 @@ int cmd_rget(SESSION handle, int argc, char **argv) if (optind >= argc) { - printf("%s: Missing required arguments\n", "get"); + printf("%s: Missing required arguments\n", "rget"); return ERROR; } @@ -332,7 +334,7 @@ int cmd_rget(SESSION handle, int argc, char **argv) if (optind != argc) { - printf("%s: Too many arguments\n", "get"); + printf("%s: Too many arguments\n", "rget"); return ERROR; } @@ -364,7 +366,7 @@ int cmd_rput(SESSION handle, int argc, char **argv) } else { - printf("%s: Unrecognized option: '%c'\n", "put", option); + printf("%s: Unrecognized option: '%c'\n", "rput", option); return ERROR; } } @@ -373,7 +375,7 @@ int cmd_rput(SESSION handle, int argc, char **argv) if (optind >= argc) { - printf("%s: Missing required arguments\n", "get"); + printf("%s: Missing required arguments\n", "rput"); return ERROR; } @@ -388,7 +390,7 @@ int cmd_rput(SESSION handle, int argc, char **argv) if (optind != argc) { - printf("%s: Too many arguments\n "); + printf("%s: Too many arguments\n", "rput"); return ERROR; } |