diff options
author | msmith <msmith@FreeBSD.org> | 1998-01-09 13:45:11 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-01-09 13:45:11 +0000 |
commit | 66b7c3e2e0ae7a1716a2373ff89febc5057bb179 (patch) | |
tree | 0365be9747aae612f5f9acac93f3384b6a3db464 /usr.bin/ftp/cmds.c | |
parent | a20e740c7dccd260a40cb8f0de116e05dabbf24d (diff) | |
download | FreeBSD-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/cmds.c')
-rw-r--r-- | usr.bin/ftp/cmds.c | 6 |
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; |