This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.18: telnet: tcp/telnet: unknown service


Hi,

I've a problem with telnet, ftp and probably more programs. But not ssh.
I don't know since when this problem appeared on my system,

In the mailing list I've seen that Someone asked for an strace. Well......
this is the part where it seems to go wrong:

   23  347369 [main] telnet 4140 cygwin_gethostbyname: h_name (VG
  378  347747 [main] telnet 4140 __set_errno: void
__set_winsock_errno(const char*, int):289 val 1
   41  347788 [main] telnet 4140 __set_winsock_errno: __dup_ent:389 -
winsock error 11004 -> errno 1
   23  347811 [main] telnet 4140 cygwin_getservbyname: 0x0 = getservbyname
(telnet, tcp)
   66  347877 [main] telnet 4140 fhandler_base::write: binary write
telnet: tcp/telnet: unknown service

Further I've read that there can be a proble with the services file.
I tried the following:
cd `cygpath -u $SYSTEMROOT/system32/drivers/etc`
mv services services.old
echo "telnet 23/tcp" > services"

But this did't help.
Then I read something about Filemon from sysinternals.
I downloaded the file en this is the outcome:

108     13:35:01        telnet.exe:5396 OPEN   
C:\cygwin\bin\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All
109     13:35:01        telnet.exe:5396 OPEN   
C:\cygwin\bin\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All


While executing the telnet I was standing in c:\cygwin\bin. If I go to  an
other directory you would see something like:
108     13:35:01        telnet.exe:5396 OPEN   
OTHERDIRECTORY\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All
109     13:35:01        telnet.exe:5396 OPEN   
OTHERDIRECTORY\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All


The only way to work with telnet is to use the portnumber:
telnet machine 23

Please help !!



Attachment: cygcheck.out
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]