Hi,

In file c/src/libmisc/shell/shell.c near line 292 I think there should be a check to make sure that FILE* out is not NULL before calling tcdrain(fileno(out)) (out is NULL when entering a password).

Unless I'm mistaken (again!) this is still a problem in snapshot ss-20010816.

Regards,
Andy

/* ----------------------------------------------- *
 * TODO: Add improvements. History, edit vi or emacs, ...
 * ----------------------------------------------- */
int shell_scanline(char * line,int size,FILE * in,FILE * out) {
  int c,col;
  col=0;
  if (*line) {
   col=strlen(line);	  
   if (out) fprintf(out,"%s",line);
  };
  tcdrain(fileno(in ));
  if( out )
    tcdrain(fileno(out));


Surrey Satellite Technology Limited
http://www.sstl.co.uk
The views expressed in this email are my own(isn't that reassuring?)




_______________________________________________________________________
FSmail - Get your free web-based email from Freeserve: www.fsmail.net





