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



Hi, Thomas!

Can you add -p option to diff.  It makes patches more readable.

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	Wed May  1 14:17:55 2002
+++ mc-4.5.99a/vfs/ftpfs.c	Wed May  1 14:19:05 2002
@@ -1973,8 +1973,12 @@
     rupp->host = g_strdup (host);
     rupp->login = rupp->pass = 0;
- if (*login != NULL)
+    if (*login != NULL) {
+    	if (!strncmp(*login, "*netrc*", 7))

Sorry, but I don't understand, why do you use strncmp instead of simple strcmp?


--
Regards,
Andrew V. Samoilov.




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