Patch for setuid_socket_wrap
Magnus Henoch
mange@REDACTED
Fri Dec 16 22:58:54 CET 2005
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
@@ -175,7 +175,7 @@
{
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) {
More information about the erlang-patches
mailing list