diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-07 21:34:58 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-07 21:34:58 +0000 |
commit | 875e1795e86857ea6d5b1c5e2f9c356913eaf5b4 (patch) | |
tree | 0c1cca198c460887b06ed5587a00caf6c61fc83a | |
parent | 8db3c1361d1b6b4cfabe47c3886e7d24445d159e (diff) |
Return exit status != 0 if any transfers fail in the commandline
specified file fetch mode. Makes backup locations in the ports system work.
-rw-r--r-- | usr.bin/ftp/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index e2b8560913b..35049f8c61c 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.10 1996/12/18 01:59:15 michaels Exp $ */ +/* $OpenBSD: main.c,v 1.11 1997/01/07 21:34:57 niklas Exp $ */ /* * Copyright (c) 1985, 1989, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.10 1996/12/18 01:59:15 michaels Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.11 1997/01/07 21:34:57 niklas Exp $"; #endif #endif /* not lint */ @@ -248,9 +248,11 @@ main(argc, argv) xargv[2] = NULL; xargc = 2; get(xargc, xargv); + if (code != 226) + ret = 1; --argc; argv++; - } while (argc > 0 && strchr(argv[0], ':') == NULL); + } while (argc > 0 && strchr(argv[0], ':') == NULL); /* get ready for the next file */ bail: |