summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/main.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-01-21 01:37:22 +0000
committerache <ache@FreeBSD.org>1995-01-21 01:37:22 +0000
commitbf096f839ffdfd4c0bcf321e659b609f87898f79 (patch)
tree18628daa43868cc747a912947f254803dc6f6ef2 /usr.bin/ncftp/main.c
parent0edc03212c3f07948f41571217c0ce0b0ecdbc96 (diff)
downloadFreeBSD-src-bf096f839ffdfd4c0bcf321e659b609f87898f79.zip
FreeBSD-src-bf096f839ffdfd4c0bcf321e659b609f87898f79.tar.gz
Not go to interactive mode, if login failed for URLs, just
exit(1). Dedicated to Jordan.
Diffstat (limited to 'usr.bin/ncftp/main.c')
-rw-r--r--usr.bin/ncftp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index f7c1d75..8a59967 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -345,7 +345,8 @@ Examples:\n\
makeargv();
/* setpeer uses this to tell if it was called from the cmd-line. */
eventnumber = 0L;
- (void) cmdOpen(margc, margv);
+ if (cmdOpen(margc, margv) != NOERR)
+ exit(1);
}
eventnumber = 1L;
OpenPOWER on IntegriCloud