4.5.99a (mc-2002-04-26-03) .netrc patch



Hi there,

Enclosed you'll find a patch that enables .netrc support for mc-4.5.99a
(the mc-2002-04-26-03 version).

IIRC, .netrc support has been there since mc-4.1.x days (or at least it
was available via ./configure), but it never quite worked for me. Today
I finally got off my lazy ass and fixed it. :-)

Looking at the rather trivial patch, I'm wondering - am I the only one
using .netrc these days? I can't believe nobody else has noticed this
before. Just curious ...

Bye,
Thomas
-- 
=-------------------------------------------------------------------------=
- Thomas "ZlatkO" Zajic   <zlatko gmx at>    Linux-2.4.18 & Mutt-1.2.5.1i -
-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=
diff -ur mc-4.5.99a-orig/vfs/ftpfs.c mc-4.5.99a/vfs/ftpfs.c
--- mc-4.5.99a-orig/vfs/ftpfs.c	Fri Feb  8 15:25:59 2002
+++ mc-4.5.99a/vfs/ftpfs.c	Fri Apr 26 15:08:05 2002
@@ -387,6 +387,10 @@
     int  anon = 0;
     char reply_string[BUF_MEDIUM];
 
+#ifdef USE_NETRC
+    lookup_netrc(SUP.host, &SUP.user, &netrcpass);
+#endif
+
     SUP.isbinary = TYPE_UNKNOWN;    
     if (netrcpass)
         op = g_strdup (netrcpass);

Attachment: pgp34mzbMaR7Y.pgp
Description: PGP signature



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