diff options
author | ache <ache@FreeBSD.org> | 1995-01-21 01:37:22 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-01-21 01:37:22 +0000 |
commit | bf096f839ffdfd4c0bcf321e659b609f87898f79 (patch) | |
tree | 18628daa43868cc747a912947f254803dc6f6ef2 /usr.bin/ncftp/main.c | |
parent | 0edc03212c3f07948f41571217c0ce0b0ecdbc96 (diff) | |
download | FreeBSD-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.c | 3 |
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; |