[patch] Handle blank protocol in getservbyname/port
Paul Rupe
prupe at myrealbox.com
Sun Mar 16 14:31:37 CST 2003
Hamster 2.0.0.0 calls getservbyname to convert "nntp" to 119, but it uses ""
as the protocol rather than NULL or "tcp". In Windows, an empty string
works the same as NULL, but Linux looks for a protocol named "". This
patch passes NULL to the OS if called with an empty string.
License: X11, LGPL
Changelog:
Paul Rupe <prupe at myrealbox.com>
Treat blank protocol the same as NULL in getservbyname & getservbyport
--
Paul Rupe <prupe at myrealbox.com> "She smiled, in the end."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socket.20030316.dff
Type: text/x-diff
Size: 1184 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030316/dec09c1a/socket.20030316.bin
More information about the wine-patches
mailing list