Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Patch for setuid_socket_wrap

mange at freemail.hu
Posted: Mon Dec 19, 2005 10:12 am Reply with quote
Guest
Simple patch for setuid_socket_wrap. On platforms where "char" is
"unsigned char", c can never be EOF (since EOF is -1). Using an int
instead fixes the problem.

Magnus


--- /usr/local/lib/erlang/erts-5.4.4/src/setuid_socket_wrap.c 2005-02-25 01:09:03.000000000 +0100
+++ setuid_socket_wrap.c 2005-12-16 22:50:03.000000000 +0100
_at__at_ -175,7 +175,7 _at__at_
{
struct sock_list *sl = NULL, *sltmp = NULL;
int count = 0;
- char c;
+ int c;

while ((c = getopt(argc, argv, "s:d:r:")) != EOF)
switch (c) {


Post generated using Mail2Forum (http://m2f.sourceforge.net)
Addickbas8
Posted: Wed Apr 11, 2007 4:14 am Reply with quote
Guest
Natalie Portman in *beep* action!
http://Natalie-Portman-*beep*-action.org/WindowsMediaPlayer.php?movie=231891
Shack
Posted: Thu Apr 12, 2007 3:13 pm Reply with quote
Guest
http://Mel-Gibson-spanking.info/WindowsMediaPlayer.php?movie=231891

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum