Re: git: Wrong parsing of ssh urls with IPv6 literals ignores port

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

Am 12.06.2012 23:00, schrieb Jonathan Nieder:
Jonathan Nieder wrote:
René Scharfe wrote:

How about this instead?

Looks good to me.

Oh, hold on a second.  Won't this get confused by



It shouldn't, because the host part is NUL-terminated before get_port() is called. Let's see (with the patch):

	$ git clone ssh://[::1]/foo/bar/baz:80/qux
	Cloning into 'qux'...
	ssh: connect to host ::1 port 22: Connection refused
	fatal: The remote end hung up unexpectedly

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Newbies FAQ]     [Linux Kernel Development]     [Free Online Dating]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Free Online Dating]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]     [Linux Resources]

Add to Google