I've tried to fix some of the problems...

Jeff Bailey <[EMAIL PROTECTED]> writes:

> On Fri, Jul 07, 2000 at 10:06:36AM +0200, Niels Mvller wrote:
>
> > Hmm. In my sources, all uses of logwtmp (in unix_user.c) are protected
> > by a #if WITH_UTMP && HAVE_LOGWTMP. Hmm, perhaps I need to add a few
> > defined() there; I don't remember if "unsupported" symbols are undefined
> > or defined with a zero value by configure.

Done.

> I think it would be nice if the `configure' warning said something like 
> "Scheme not found, do not edit the source code!" or something like that 
> so that it's obvious that it's not a bad thing.

Done. Current wording:

if test x$SCHEME_PROGRAM = x ; then
  AC_MSG_WARN([No scheme implementation found.
This is fine as long as you don't modify the source files.])
  SCHEME_PROGRAM=false
fi

> bash-2.02$ ./lsh -z none --sloppy-host-authentication oasis.zugzug.com

[...]

> lsh: address could not be resolved
> bash-2.02$ 

I have added a note in the manual saying that there can't be any space
between the -z option and its optional argument.

> bash-2.02$ ./lsh --compression=none  --sloppy-host-authentication 
> oasis.zugzug.com
> Failed to open '/home/fsf/jbailey/.lsh/captured_keys' (errno = 2): No 
> such file or directory.
> Set FD 0 = 4
> Returning 1
> Failed to open '/home/fsf/jbailey/.lsh/known_hosts' (errno = 2): No such 
> file or directory.
> Set FD 0 = 0

[...]

> Returning 0
> Set FD 0 = 4
> Returning 1
> Unexpected timeout
> IOT trap/Abort
> bash-2.02$ 

This confuses me. The error occurs if poll returns 0 (indicating a
timeout) when not expected to. But the debug output indicates that the
latest poll() in jpoll.c did return 1, _not_ 0. I don't use the jpoll
code at all on my machines, so help with debugging this would really
be appreciated.

I also edited the jpoll.c file to use trace() isntead of printf() for
debug output.

> Password for jbailey: 
> Set FD 0 = 4
> Returning 1
> Set FD 0 = 0
> Returning 0
> Set FD 0 = 1
> Returning 1
> Password for jbailey: 
> 
> Ctrl-C won't let me out!  This should probably have a max-try count and 
> be able to force my way out of.

I've hacked client_userauth.c to give up if you enter an empty password
twice.

Unfortunately, there's no public cvs server (mostly because I'm lazy,
but also because I'm a little paranoid, and want to know what happens
to the canonical source code). But you can get the latest checked in
version by running wget against http://www.lysator.liu.se/~nisse/lsh
(that's a Roxen module that checks out files from cvs as they are
asked for). You'll need some more tools to build from cvs, in
particular, you *do* need guile or scsh. Running misc/bootstrap.sh
should get the tree into a state where you can run make.

/Niels

Reply via email to