Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp Don't clear the trailing character on the auth_u...
details: https://anonhg.NetBSD.org/src/rev/0e24465bce87
branches: trunk
changeset: 583754:0e24465bce87
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Aug 21 16:16:33 2005 +0000
description:
Don't clear the trailing character on the auth_url() username;
we now use getline() and that newline strips for us.
Problem found & fixed by Mark Davies.
diffstat:
usr.bin/ftp/fetch.c | 5 ++---
usr.bin/ftp/version.h | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 8ecfead341d7 -r 0e24465bce87 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Sun Aug 21 15:37:57 2005 +0000
+++ b/usr.bin/ftp/fetch.c Sun Aug 21 16:16:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.163 2005/06/29 02:31:19 christos Exp $ */
+/* $NetBSD: fetch.c,v 1.164 2005/08/21 16:16:33 lukem Exp $ */
/*-
* Copyright (c) 1997-2005 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.163 2005/06/29 02:31:19 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.164 2005/08/21 16:16:33 lukem Exp $");
#endif /* not lint */
/*
@@ -196,7 +196,6 @@
warnx("%s; can't authenticate", errormsg);
goto cleanup_auth_url;
}
- user[strlen(user) - 1] = '\0';
}
if (gpass != NULL)
pass = (char *)gpass;
diff -r 8ecfead341d7 -r 0e24465bce87 usr.bin/ftp/version.h
--- a/usr.bin/ftp/version.h Sun Aug 21 15:37:57 2005 +0000
+++ b/usr.bin/ftp/version.h Sun Aug 21 16:16:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.56 2005/07/19 00:41:05 lukem Exp $ */
+/* $NetBSD: version.h,v 1.57 2005/08/21 16:16:33 lukem Exp $ */
/*-
* Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -40,5 +40,5 @@
#endif
#ifndef FTP_VERSION
-#define FTP_VERSION "20050718"
+#define FTP_VERSION "20050822"
#endif
Home |
Main Index |
Thread Index |
Old Index