ftpfs-mini-patch

Jochen Schaeuble psionic at psionic.de
Fri Feb 1 08:27:34 UTC 2002


Hi,
  I've modified the vfsutil.c source a bit so I can connect to a ftp
  server where the username contains the @ symbol. It's really simple...
  I just changed the strchr into a strrchr. That's all. I hope this
  mini-patch is helpful to others out there.

Greets,
  jochen

P.S. I'm not subscribed on this list. If you want to reach me please use
my e-mail address.
-------------- next part --------------
--- mc-4.5.55.orig/vfs/utilvfs.c	Fri Aug  3 12:12:18 2001
+++ mc-4.5.55/vfs/utilvfs.c	Fri Feb  1 08:57:06 2002
@@ -89,7 +89,7 @@
     }
     
     /* search for any possible user */
-    at    = strchr (pcopy, '@');
+    at    = strrchr (pcopy, '@');
 
     /* We have a username */
     if (at){


More information about the mc-devel mailing list