summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-01-09 13:45:11 +0000
committermsmith <msmith@FreeBSD.org>1998-01-09 13:45:11 +0000
commit66b7c3e2e0ae7a1716a2373ff89febc5057bb179 (patch)
tree0365be9747aae612f5f9acac93f3384b6a3db464 /usr.bin/ftp
parenta20e740c7dccd260a40cb8f0de116e05dabbf24d (diff)
downloadFreeBSD-src-66b7c3e2e0ae7a1716a2373ff89febc5057bb179.zip
FreeBSD-src-66b7c3e2e0ae7a1716a2373ff89febc5057bb179.tar.gz
Revert to previous behaviour, only generate NLST for explicit "nlist"
command. Submitted by: wollman
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index 7576537..b96f4c0 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: cmds.c,v 1.12 1997/12/13 20:38:12 pst Exp $ */
/* $NetBSD: cmds.c,v 1.30.2.1 1997/11/18 00:58:26 mellon Exp $ */
/*
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-__RCSID("$Id$");
+__RCSID("$Id: cmds.c,v 1.12 1997/12/13 20:38:12 pst Exp $");
__RCSID_SOURCE("$NetBSD: cmds.c,v 1.30.2.1 1997/11/18 00:58:26 mellon Exp $");
#endif
#endif /* not lint */
@@ -1137,7 +1137,7 @@ ls(argc, argv)
code = -1;
return;
}
- cmd = strcmp(argv[0], "dir") == 0 ? "LIST" : "NLST";
+ cmd = strcmp(argv[0], "nlist") == 0 ? "NLST" : "LIST";
oldargv2 = argv[2];
if (strcmp(argv[2], "-") && !globulize(&argv[2])) {
code = -1;
OpenPOWER on IntegriCloud