bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ftpfs


From: Alfred M. Szmidt
Subject: Re: ftpfs
Date: Thu, 16 Jun 2005 17:59:25 -0400

I don't see any reason why we shouldn't support weirdo usernames.. OK
to commit?

Though, maybe we should add a --user/-u option (too?).

Side Note: Literal tabs instead of four spaces when indenting the
ChangeLog entry.  (End of Side Note)

Thank you for contributing! and happy continued hacking!

2005-06-14  Hugues Larrive  <hugues.larrive@gmail.com>

        * ftpfs.c (parse_startup_opt): User names may contain a @, so
        take the last @ of FTPFS_REMOTE_FS.
        * host.c (split_server_name): User names may contain a @, so take the
        last @ of P.

diff -Nurp hurd-orig/ftpfs/ftpfs.c hurd/ftpfs/ftpfs.c
--- hurd-orig/ftpfs/ftpfs.c     2002-05-13 19:39:37.000000000 +0200
+++ hurd/ftpfs/ftpfs.c  2005-06-14 14:42:33.000000000 +0200
@@ -255,7 +255,7 @@ parse_startup_opt (int key, char *arg, s
        {
          int h_err;            /* Host lookup error.  */
          error_t err;
-         char *sep = strchr (ftpfs_remote_fs, '@');
+         char *sep = strrchr (ftpfs_remote_fs, '@');

          if (sep)
            /* FTPFS_REMOTE_FS includes a '@', which means that it's in
diff -Nurp hurd-orig/ftpfs/host.c hurd/ftpfs/host.c
--- hurd-orig/ftpfs/host.c      1997-08-07 05:06:20.000000000 +0200
+++ hurd/ftpfs/host.c   2005-06-14 14:43:24.000000000 +0200
@@ -38,7 +38,7 @@ split_server_name (const char *server, c

   /* Extract the hostname; syntax is either `HOST:...', `...@HOST', or 
just
      HOST if there are no user parameters specified.  */
-  sep = strchr (p, '@');
+  sep = strrchr (p, '@');
   if (sep)
     /* ...@HOST */
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]