Re: Building ttysnoop from contrib.

2000-07-19 Thread Thomas Dodd
"Mike A. Harris" wrote: > On Tue, 18 Jul 2000, Thomas Dodd wrote: > >#define _XOPEN_SOURCE > >#include > >char *crypt(const char *key, const char *salt); > > > >which doesn't look like what you have in the code. > >But I've never used crypt either. > > Yeah, I did all that yesterday, and a bunch

Re: Building ttysnoop from contrib.

2000-07-18 Thread Mike A. Harris
On Tue, 18 Jul 2000, Thomas Dodd wrote: >> Looks like some library is missing, or something. I just turned > >I'd agree. >add '-lcrypt' to the last compile command. > >What version of crypt are you using though? > >man crypt: > >crypt(3) >#define _XOPEN_SOURCE >#include >char *crypt(const char

Re: Building ttysnoop from contrib.

2000-07-18 Thread Thomas Dodd
"Mike A. Harris" wrote: > > Much better... Here is line 343 from ttysnoops.c: > > #ifndef SHADOW_PWD > if (strcmp(pw->pw_passwd,crypt(buff, pw->pw_passwd)) == 0) > #else > > I change it to: > > #ifndef SHADOW_PWD > if (strcmp(pw->pw_passwd,(char *) crypt(buff, pw->pw_passwd)

Building ttysnoop from contrib.

2000-07-18 Thread Mike A. Harris
The ttysnoop package in redhat contrib is broken, and has been for ages. Looks like it must have been a 'first try' for the submitter that doesn't work... I got the src RPM: ttysnoop-0.12c-5.src.rpm And am trying to build it. It includes 2 patch files. One that supposedly patches the Makefil