Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp formatbuf(): fix %m and %M to use the hostname, ...



details:   https://anonhg.NetBSD.org/src/rev/80c89968c5eb
branches:  trunk
changeset: 581132:80c89968c5eb
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri May 27 14:35:50 2005 +0000

description:
formatbuf(): fix %m and %M to use the hostname, not the username.

diffstat:

 usr.bin/ftp/util.c    |  6 +++---
 usr.bin/ftp/version.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 73fd3cb56526 -r 80c89968c5eb usr.bin/ftp/util.c
--- a/usr.bin/ftp/util.c        Fri May 27 14:01:46 2005 +0000
+++ b/usr.bin/ftp/util.c        Fri May 27 14:35:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.127 2005/05/26 02:59:34 lukem Exp $ */
+/*     $NetBSD: util.c,v 1.128 2005/05/27 14:35:50 lukem Exp $ */
 
 /*-
  * Copyright (c) 1997-2005 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: util.c,v 1.127 2005/05/26 02:59:34 lukem Exp $");
+__RCSID("$NetBSD: util.c,v 1.128 2005/05/27 14:35:50 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -1167,7 +1167,7 @@
 
                case 'M':
                case 'm':
-                       for (p2 = connected && username ? username : "-";
+                       for (p2 = connected && hostname ? hostname : "-";
                            *p2 ; p2++) {
                                if (op == 'm' && *p2 == '.')
                                        break;
diff -r 73fd3cb56526 -r 80c89968c5eb usr.bin/ftp/version.h
--- a/usr.bin/ftp/version.h     Fri May 27 14:01:46 2005 +0000
+++ b/usr.bin/ftp/version.h     Fri May 27 14:35:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: version.h,v 1.51 2005/05/26 02:59:34 lukem Exp $       */
+/*     $NetBSD: version.h,v 1.52 2005/05/27 14:35:50 lukem Exp $       */
 /*-
  * Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -40,5 +40,5 @@
 #endif
 
 #ifndef FTP_VERSION
-#define        FTP_VERSION     "20050526"
+#define        FTP_VERSION     "20050527"
 #endif



Home | Main Index | Thread Index | Old Index