On Sun, 2002-07-07 at 12:19, Jean-Pierre Schwickerath wrote: > Gordon Messmer <[EMAIL PROTECTED]> wrote: > > > What platform are you running? What does getservbyname() return when > > you give it "993" (the test program attached will tell you if you > > compile and run it) > > I'm running Linux From Scratch on i386 with Kernel 2.4.19-pre2 > > I compiled the test program you sent and it returns > > getservbyname returned port: 18690
Oops... I forgot a ntohs() in that test program. No matter, it served its purpose. > > Look for 585 in /etc/services after you run the test. If it's named > > "imaps", you might want to comment out or remove the line. > > In /etc/services I have: > > imap4-ssl 585/tcp IMAP4+SSL (use 993 instead) > imap4-ssl 585/udp IMAP4+SSL (use 993 instead) > > imaps 993/tcp imap4 protocol over TLS/SSL > imaps 993/udp imap4 protocol over TLS/SSL > > for the relevant parts. Well, there's your problem. Words that follow the port/protocol are aliases, unless they're commented out with a hash. Your services file is obviously bunk. Contact your vendor and inform them of that... getservbyname() was returning the old 585/tcp because 993 looks like an alias. getservbyname() should have returned NULL. > I commented out the 585 lines and it works.... > Then the test program returns > getservbyname returned NULL /me nods As it should. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek We have stuff for geeks like you. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
