Re: [PATCH] getsockname() always fails with EFAULT in 2.1.127pre7

Ely Wilson (plexus@ionet.net)
Fri, 6 Nov 1998 21:08:03 -0700 (MST)


On Fri, 6 Nov 1998, Ely Wilson wrote:

> > -------snip-------
> > --- socket.c.old Thu Aug 27 19:33:09 1998
> > +++ socket.c Fri Nov 6 19:32:35 1998
> > @@ -170,7 +170,7 @@
> > int err;
> > int len;
> >
> > - if((err=get_user(len, ulen)))
> > + if((err=get_user(len, uaddr)))
> > return err;
> > if(len>klen)
> > len=klen;
> > -------snip-------
> >
>
> The above patch does not compile properly (cringe). uaddr needs a cast
> such as the following to compile properly.
>
> + if ((err=get_user(len, (char*)uaddr)))
>
>
>

How to you make a mad face? ;-( ?

I still get an EFAULT with that server.c client.c C scripts.

----------------------------------------------------
ely <plexus@ionet.net>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/