mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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 e86fd87a38
)
This commit is contained in:
parent
87168bf6b3
commit
e04759fbab
@ -84,7 +84,8 @@ SCRIPTS = script/smbtar script/addtosmbpass
|
|||||||
# object file lists
|
# object file lists
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
LIB_OBJ = lib/charcnv.o lib/charset.o lib/debug.o lib/fault.o \
|
LIB_OBJ = lib/charcnv.o lib/charset.o \
|
||||||
|
lib/debugparse.o lib/debug.o lib/fault.o \
|
||||||
lib/getsmbpass.o lib/interface.o lib/kanji.o lib/md4.o \
|
lib/getsmbpass.o lib/interface.o lib/kanji.o lib/md4.o \
|
||||||
lib/membuffer.o lib/netmask.o lib/pidfile.o lib/replace.o \
|
lib/membuffer.o lib/netmask.o lib/pidfile.o lib/replace.o \
|
||||||
lib/signal.o lib/slprintf.o lib/system.o lib/time.o lib/ufc.o \
|
lib/signal.o lib/slprintf.o lib/system.o lib/time.o lib/ufc.o \
|
||||||
@ -231,6 +232,8 @@ RPCTORTURE_OBJ = utils/rpctorture.o \
|
|||||||
$(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
|
$(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ) \
|
||||||
$(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ)
|
$(RPC_CLIENT_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ)
|
||||||
|
|
||||||
|
DEBUG2HTML_OBJ = utils/debug2html.o lib/debugparse.o
|
||||||
|
|
||||||
PROTO_OBJ = $(SMBD_OBJ) $(NMBD_OBJ) $(SWAT_OBJ) $(CLIENT_OBJ) \
|
PROTO_OBJ = $(SMBD_OBJ) $(NMBD_OBJ) $(SWAT_OBJ) $(CLIENT_OBJ) \
|
||||||
$(RPCCLIENT_OBJ) $(SMBWRAPPER_OBJ)
|
$(RPCCLIENT_OBJ) $(SMBWRAPPER_OBJ)
|
||||||
|
|
||||||
@ -249,6 +252,8 @@ smbtorture : CHECK bin/smbtorture
|
|||||||
|
|
||||||
rpctorture : CHECK bin/rpctorture
|
rpctorture : CHECK bin/rpctorture
|
||||||
|
|
||||||
|
debug2html : CHECK bin/debug2html
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o .po .po32
|
.SUFFIXES: .c .o .po .po32
|
||||||
|
|
||||||
@ -368,6 +373,10 @@ bin/rpctorture: $(RPCTORTURE_OBJ) bin/.dummy
|
|||||||
@echo Linking $@
|
@echo Linking $@
|
||||||
@$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(LDFLAGS) $(LIBS)
|
@$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
bin/debug2html: $(DEBUG2HTML_OBJ) bin/.dummy
|
||||||
|
@echo Linking $@
|
||||||
|
@$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
bin/smbwrapper.so: $(PICOBJS)
|
bin/smbwrapper.so: $(PICOBJS)
|
||||||
@echo Linking shared library $@
|
@echo Linking shared library $@
|
||||||
@$(LD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LIBS)
|
@$(LD) @LDSHFLAGS@ -o $@ $(PICOBJS) $(LIBS)
|
||||||
|
@ -29,6 +29,22 @@
|
|||||||
* -------------------------------------------------------------------------- **
|
* -------------------------------------------------------------------------- **
|
||||||
*
|
*
|
||||||
* $Log: debug2html.c,v $
|
* $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
|
* Revision 1.1 1998/10/26 23:21:37 crh
|
||||||
* Here is the simple debug parser and the debug2html converter. Still to do:
|
* 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( "<HTML>\n<HEAD>\n" );
|
(void)printf( "<HTML>\n<HEAD>\n" );
|
||||||
(void)printf( " <TITLE>Samba Debug Output</TITLE>\n</HEAD>\n\n<BODY>\n" );
|
(void)printf( " <TITLE>Samba Debug Output</TITLE>\n</HEAD>\n\n<BODY>\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++ )
|
for( i = 0; i < len; i++ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user