* libnetworking/lib/ftpfs.c: Fixed a special case with no username and
	password.
This commit is contained in:
Sebastian Huber
2010-10-19 07:38:53 +00:00
parent 6dd4853c48
commit 71a6a16fd0
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Fixed a special case with no username and
password.
2010-10-19 Chris Johns <chrisj@rtems.org> 2010-10-19 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in * libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in

View File

@@ -491,6 +491,13 @@ static bool rtems_ftpfs_split_names (
done: done:
/* This is a special case with no username and password */
if (*hostname == NULL) {
*hostname = &s [0];
*user = "anonymous";
*password = *user;
}
/* If we have no password use the user name */ /* If we have no password use the user name */
if (*password == NULL) { if (*password == NULL) {
*password = *user; *password = *user;