git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cvsimport weird

From
PRPavel Roskin <proski@gnu.org>
Date
May 18, 2006, 05:44 UTC
Message-ID
<1147931094.32050.51.camel@dv>
In-Reply-To
<1147924771.32050.40.camel@dv>
On Wed, 2006-05-17 at 23:59 -0400, Pavel Roskin wrote:
> I'm quite sure that it's a bug in cvsps.  It displays such things on
> x86_64, but works properly on 32-bit PowerPC.

Address resolution is broken in cvsps on 64-bit machines. This patch to cvsps is needed:

--- cbtcommon/tcpsocket.c +++ cbtcommon/tcpsocket.c

@@ -198,7 +198,7 @@ convert_address(long *dest, const char *
     memcpy(dest, &ip.s_addr, sizeof(ip.s_addr));
   }
 #else
-  if ( (*dest = inet_addr(addr_str)) != -1)
+  if ( (*dest = inet_addr(addr_str)) != INADDR_NONE)
   {
     /* nothing */
   }


However, it's not sufficient to fix the original problem of empty CVS
server version string.  For some reason cvsps fails to authenticate with
pserver.  The ext protocol is working.

It's interesting that both git-cvsimport and cvsps have code to
authenticate over the pserver protocol.  I think maybe git-cvsimport
shouldn't do it, or maybe it should close some sockets before running
cvsps.
-- 
Regards,
Pavel Roskin
Previous: Pavel RoskinNext: YOSHIFUJI Hideaki / 吉藤英明
Message 4 of 6 in “cvsimport weird”
  1. Bertrand JacquinMay 18, 2006
  2. Martin LanghoffMay 18, 2006
  3. Pavel RoskinMay 18, 2006
  4. Pavel RoskinMay 18, 2006
  5. YOSHIFUJI Hideaki / 吉藤英明May 18, 2006
  6. Bertrand JacquinMay 18, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.