Enhancement suggestion: improve the host not found error message

Chris Pepper pepper at reppep.com
Tue May 7 17:09:01 EST 2002


At 9:38 AM -0500 2002/05/07, Dave Dykstra wrote:
>What operating system are you talking about?  Solaris 2.7 reports
>     rsync: getaddrinfo: g45 873: no address associated with hostname.
>and Linux kernel 2.4.18 reports
>     rsync: getaddrinfo: g45 873: Name or service not known

	Sorry, this is Mac OS X (Darwin):

>pepper at salt:~% uname -a
>Darwin salt.rockefeller.edu 5.4 Darwin Kernel Version 5.4: Wed Apr 
>10 09:27:47 PDT 2002; root:xnu/xnu-201.19.3.obj~1/RELEASE_PPC  Power 
>Macintosh powerpc


						Chris Pepper

>On Sat, May 04, 2002 at 12:06:42AM -0400, Chris Pepper wrote:
>>	When I feed a bogus hostname to rsync, it reports "Undefined
>>  error". It would be useful if instead it would say something more
>>  informative, like "Host not found".
>>
>>
>>						Thanks for rsync!
>>
>>
>>						Chris Pepper
>>  PS-Please cc: me on any replies -- I'm not a subscriber.
>>
>>  >[imobile:~/Sites/cvs/apache-clone] pepper% rsync -CHaz --delete
>>  >--stats --progress g45::cvs-apache ~/Sites/cvs/apache-clone/
>>  >rsync: failed to connect to g45: Undefined error: 0
>>  >rsync error: error in socket IO (code 10) at clientserver.c(97)
>>  >[imobile:~/Sites/cvs/apache-clone] pepper% rsync --version
>>  >rsync  version 2.5.5  protocol version 26
>>  >Copyright (C) 1996-2002 by Andrew Tridgell and others
>>  ><http://rsync.samba.org/>
>>  >Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
>>  >              no IPv6, 32-bit system inums, 64-bit internal inums
>>  >
>>  >rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
>>  >are welcome to redistribute it under certain conditions.  See the GNU
>  > >General Public Licence for details.

-- 
Chris Pepper:               <http://www.reppep.com/~pepper/>
Rockefeller University:        <http://www.rockefeller.edu/>




More information about the rsync mailing list