formatbuf(): fix %m and %M to use the hostname, not the username.
This commit is contained in:
parent
305f170238
commit
4011dcc7ab
|
@ -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 @@ formatbuf(char *buf, size_t len, const char *src)
|
|||
|
||||
case 'M':
|
||||
case 'm':
|
||||
for (p2 = connected && username ? username : "-";
|
||||
for (p2 = connected && hostname ? hostname : "-";
|
||||
*p2 ; p2++) {
|
||||
if (op == 'm' && *p2 == '.')
|
||||
break;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue