summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-03 04:57:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-03 04:57:55 +0000
commitb38e28efaeca5daf4e6c6033b5072733db287464 (patch)
tree81f6eb35c93c1430a1f771619e27b6df64848307 /usr.bin/ftp
parent4a769214950716e66183c7fa4530d9db4a520803 (diff)
be more aware of directory change failures; s@msmith.net
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cmds.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index a64df14342e..b22908e3797 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.41 2002/07/12 00:25:30 deraadt Exp $ */
+/* $OpenBSD: cmds.c,v 1.42 2003/01/03 04:57:54 deraadt Exp $ */
/* $NetBSD: cmds.c,v 1.27 1997/08/18 10:20:15 lukem Exp $ */
/*
@@ -67,7 +67,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.41 2002/07/12 00:25:30 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.42 2003/01/03 04:57:54 deraadt Exp $";
#endif
#endif /* not lint */
@@ -1045,6 +1045,10 @@ cd(argc, argv)
fputs("CWD command not recognized, trying XCWD.\n", ttyout);
r = command("XCWD %s", argv[1]);
}
+ if (r == ERROR && code == 550) {
+ dirchange = 0;
+ return;
+ }
if (r == COMPLETE)
dirchange = 1;
}