Re: gdomap user fix

2003-09-05 Thread Chris B. Vetter
On Fri, 05 Sep 2003 19:56:47 +0200 David Ayers <[EMAIL PROTECTED]> wrote: > >+else // Failed, let's try as a number > >+ { > >+longid; > >+char*p; > >+id = strtol(name, &p, 10); > This seems wrong to me. Is there anyway that id can be non-zero given

Re: gdomap user fix

2003-09-05 Thread David Ayers
Adam Fedor wrote: +#ifdef __FreeBSD__ +uid_t uid = 65534; // setuid(2) expects an unsigned int +gid_t gid = 65534; // dito for getgid(2) +#else /* __FreeBSD__ */ +int uid = -2; +int gid = -2; +#endif /* __FreeBSD__ */ Just a few minor issues that are unclear to me... +#ifdef

Re: gdomap user fix

2003-09-03 Thread Adam Fedor
On Mon, 2003-08-25 at 14:22, Chris B. Vetter wrote: > Hi, > > attached is a modified version of the patch I sent last week that > finally takes care of the UID and GID retrieval, by trying to get that > information BEFORE jail'ing gdomap to /tmp. > I had to apply the patch by hand, so I'm not s

gdomap user fix

2003-08-25 Thread Chris B. Vetter
Hi, attached is a modified version of the patch I sent last week that finally takes care of the UID and GID retrieval, by trying to get that information BEFORE jail'ing gdomap to /tmp. I've taken care to #ifdef and (Free)BSD'isms and since it's basically only a minor modification to the original