Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp ftp_login would only return success for proxy co...
details: https://anonhg.NetBSD.org/src/rev/ff3b5626f877
branches: trunk
changeset: 473110:ff3b5626f877
user: matthias <matthias%NetBSD.org@localhost>
date: Thu May 20 14:08:12 1999 +0000
description:
ftp_login would only return success for proxy connections after the last
change. Fix this by setting rval at the right place.
diffstat:
usr.bin/ftp/util.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 1649d2d856fa -r ff3b5626f877 usr.bin/ftp/util.c
--- a/usr.bin/ftp/util.c Thu May 20 10:50:08 1999 +0000
+++ b/usr.bin/ftp/util.c Thu May 20 14:08:12 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.47 1999/05/05 16:04:58 lukem Exp $ */
+/* $NetBSD: util.c,v 1.48 1999/05/20 14:08:12 matthias Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.47 1999/05/05 16:04:58 lukem Exp $");
+__RCSID("$NetBSD: util.c,v 1.48 1999/05/20 14:08:12 matthias Exp $");
#endif /* not lint */
/*
@@ -333,10 +333,10 @@
warnx("Login failed.");
goto cleanup_ftp_login;
}
- if (proxy) {
- rval = 1;
+ rval = 1;
+ if (proxy)
goto cleanup_ftp_login;
- }
+
connected = -1;
for (n = 0; n < macnum; ++n) {
if (!strcmp("init", macros[n].mac_name)) {
Home |
Main Index |
Thread Index |
Old Index