summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-10-19 07:38:53 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-10-19 07:38:53 +0000
commit71a6a16fd04f7b25e55b8c676596b9fa8c29a037 (patch)
treef94e5a4c89ddca9e0c2420cd6c617db03d133355 /cpukit/libnetworking
parent2010-10-19 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-71a6a16fd04f7b25e55b8c676596b9fa8c29a037.tar.bz2
2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Fixed a special case with no username and password.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c
index 918d6de571..1b633aa94d 100644
--- a/cpukit/libnetworking/lib/ftpfs.c
+++ b/cpukit/libnetworking/lib/ftpfs.c
@@ -491,6 +491,13 @@ static bool rtems_ftpfs_split_names (
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 (*password == NULL) {
*password = *user;