Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd correct LPSV/LPRT display on STAT command.



details:   https://anonhg.NetBSD.org/src/rev/7a8a0916c373
branches:  trunk
changeset: 487882:7a8a0916c373
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jun 14 13:55:15 2000 +0000

description:
correct LPSV/LPRT display on STAT command.
(did not crank the version since the change is on the same day)

diffstat:

 libexec/ftpd/ftpd.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r fc9dddf7e2ab -r 7a8a0916c373 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Wed Jun 14 13:51:45 2000 +0000
+++ b/libexec/ftpd/ftpd.c       Wed Jun 14 13:55:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.93 2000/06/14 13:44:24 lukem Exp $  */
+/*     $NetBSD: ftpd.c,v 1.94 2000/06/14 13:55:15 itojun Exp $ */
 
 /*
  * Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.93 2000/06/14 13:44:24 lukem Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.94 2000/06/14 13:55:15 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -1708,8 +1708,6 @@
                                UC(p[0]), UC(p[1]));
                }
 
-/* XXXLUKEM this code doesn't look right; speak to itojun */
-
                                                        /* LPSV/LPRT */
            {
                int alen, af, i;
@@ -1736,8 +1734,8 @@
                        lreply(-2, "    %s (%d,%d",
                            ispassive ? "LPSV" : "LPRT", af, alen);
                        for (i = 0; i < alen; i++)
-                               lreply(-2, "%d,", UC(a[alen]));
-                       lreply(-1, "%d,%d,%d)", 2, UC(p[0]), UC(p[1]));
+                               lreply(-2, ",%d", UC(a[i]));
+                       lreply(-1, ",%d,%d,%d)", 2, UC(p[0]), UC(p[1]));
 #undef UC
                }
            }



Home | Main Index | Thread Index | Old Index