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.
This commit is contained in:
parent
dfad02ecbb
commit
c114b2eb28
@ -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 @@ auth_url(const char *challenge, char **response, const char *guser,
|
||||
warnx("%s; can't authenticate", errormsg);
|
||||
goto cleanup_auth_url;
|
||||
}
|
||||
user[strlen(user) - 1] = '\0';
|
||||
}
|
||||
if (gpass != NULL)
|
||||
pass = (char *)gpass;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user