summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-01-07 21:34:57 +0000
committerniklas <niklas@openbsd.org>1997-01-07 21:34:57 +0000
commit765389ed2bd3d8a162d81fefb1321b5197416c8a (patch)
treeb1f067829024ff3f53cce88091f0071376f0851c
parentAdd missing files from last commit (the one of 12-Dec- 1996) that prevented (diff)
downloadwireguard-openbsd-765389ed2bd3d8a162d81fefb1321b5197416c8a.tar.xz
wireguard-openbsd-765389ed2bd3d8a162d81fefb1321b5197416c8a.zip
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.c8
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: