From e04759fbabde02c97f362e541380921d86a6af57 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Tue, 27 Oct 1998 23:28:29 +0000 Subject: Fixed a small bug in debug2html. It wasn't properly checking EOF. The current status is "it works". I need to add some syntax error recovery and a usage message. Basic stuff. I've also modified Makefile.in. If you want to compile it you'll have to do a 'make debug2html', as I used smbtorture as a model. We can decide later if this tool is useful enough to be compiled always. BTW, a 'make realclean' fails because the bin directory isn't empty. That's because it doesn't delete optionally compiled files such as smbtorture and debug2html (and because of the CVS subdirectory, but I think that's only a problem for developers). Chris -)----- (This used to be commit e86fd87a3806f4c161a8f887bbdd4d400ae56ac2) --- source3/utils/debug2html.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/debug2html.c b/source3/utils/debug2html.c index ff891f0385..1763cf38b6 100644 --- a/source3/utils/debug2html.c +++ b/source3/utils/debug2html.c @@ -29,6 +29,22 @@ * -------------------------------------------------------------------------- ** * * $Log: debug2html.c,v $ + * Revision 1.2 1998/10/27 23:28:29 crh + * Fixed a small bug in debug2html. It wasn't properly checking EOF. The + * current status is "it works". I need to add some syntax error recovery + * and a usage message. Basic stuff. + * + * I've also modified Makefile.in. If you want to compile it you'll have to + * do a 'make debug2html', as I used smbtorture as a model. We can decide + * later if this tool is useful enough to be compiled always. + * + * BTW, a 'make realclean' fails because the bin directory isn't empty. + * That's because it doesn't delete optionally compiled files such as + * smbtorture and debug2html (and because of the CVS subdirectory, but I + * think that's only a problem for developers). + * + * Chris -)----- + * * Revision 1.1 1998/10/26 23:21:37 crh * Here is the simple debug parser and the debug2html converter. Still to do: * @@ -218,7 +234,8 @@ int main( int argc, char *argv[] ) (void)printf( "\n\n" ); (void)printf( " Samba Debug Output\n\n\n\n" ); - while( (len = fread( bufr, 1, BSIZE, stdin )) > 0 ) + while( (!feof( stdin )) + && ((len = fread( bufr, 1, BSIZE, stdin )) > 0) ) { for( i = 0; i < len; i++ ) { -- cgit