diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-13 20:43:57 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-13 20:43:57 +0000 |
commit | 5d9b1b20cbb0bf76d66eaef20b9d67e57b0ebae1 (patch) | |
tree | 0240080dd589edea4070e7558d6ff569f924a41a /usr.bin/ncftp/open.c | |
parent | 39ac25d619f7c339f8dd118cd40c7fd3fbdf2618 (diff) |
Notes
Diffstat (limited to 'usr.bin/ncftp/open.c')
-rw-r--r-- | usr.bin/ncftp/open.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ncftp/open.c b/usr.bin/ncftp/open.c index 66733a88ec9c..fbbe7945f7dd 100644 --- a/usr.bin/ncftp/open.c +++ b/usr.bin/ncftp/open.c @@ -399,6 +399,7 @@ void CheckRemoteSystemType(int force_binary) void ColonMode(OpenOptions *openopt) { int tmpverbose; + int cmdstatus; /* How do we tell if colonmodepath is a file or a directory? * We first try cd'ing to the path first. If we can, then it @@ -437,15 +438,15 @@ void ColonMode(OpenOptions *openopt) /* get() also handles 'more'. */ if (openopt->ftpcat) - (void) get(margc, margv); + cmdstatus = get(margc, margv); else - (void) mget(margc, margv); + cmdstatus = mget(margc, margv); /* If we were invoked from the command line, quit * after we got this file. */ if (eventnumber == 0L) { - (void) quit(0, NULL); + (void) quit(cmdstatus == CMDERR ? -1 : 0, NULL); } } verbose = tmpverbose; |