*** ./src/preen.report.c Wed Aug 3 23:44:34 1994 --- ../tripwire-1.2/./src/preen.report.c Tue Feb 9 14:19:11 1999 *************** *** 70,75 **** --- 70,79 ---- int unignored; FILE *fttyin = NULL, *fttyout = NULL; + /* Zero some memory to placate purify. */ + memset(&statnew, 0, sizeof(statnew)); + memset(&statold, 0, sizeof(statold)); + /* we'll use a local variable for this */ /* pp_update = *ppp_updateentries; *************** *** 284,289 **** --- 288,297 ---- int i; char label[50]; + /* Zero some memory to placate purify. */ + memset(&statnew, 0, sizeof(statnew)); + memset(&statold, 0, sizeof(statold)); + (void) fflush(stdout); if (!quietmode) { fprintf(stderr, "### Phase 5: Generating observed/expected pairs for changed files\n"); *************** *** 455,460 **** --- 463,472 ---- uint32 mode, ino, nlink, uid, gid, size; int entrynum; int nfields; + + /* Zero some memory to placate purify. */ + memset(&statnew, 0, sizeof(statnew)); + memset(&statold, 0, sizeof(statold)); /***** changed ******/ *** ./src/Makefile Mon Jul 25 11:40:54 1994 --- ../tripwire-1.2/./src/Makefile Tue Feb 9 13:21:56 1999 *************** *** 62,86 **** $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) $(OSIG1): ../include/byteorder.h ! (cd $(SIG1DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG2): ../include/byteorder.h ! (cd $(SIG2DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG3): ../include/byteorder.h ! (cd $(SIG3DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG4): ../include/byteorder.h ! (cd $(SIG4DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG5): ../include/byteorder.h ! (cd $(SIG5DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG6): ../include/byteorder.h ! (cd $(SIG6DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG7): ../include/byteorder.h ! (cd $(SIG7DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG8): ../include/byteorder.h ! (cd $(SIG8DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") ../include/byteorder.h ../include/inode.h: ! (cd ../aux; make CC=$(CC) CFLAGS="$(CFLAGS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) all) help.c: help.txt help.sh $(SHELL) help.sh help.txt > help.c --- 62,86 ---- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) $(OSIG1): ../include/byteorder.h ! (cd $(SIG1DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG2): ../include/byteorder.h ! (cd $(SIG2DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG3): ../include/byteorder.h ! (cd $(SIG3DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG4): ../include/byteorder.h ! (cd $(SIG4DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG5): ../include/byteorder.h ! (cd $(SIG5DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG6): ../include/byteorder.h ! (cd $(SIG6DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG7): ../include/byteorder.h ! (cd $(SIG7DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") $(OSIG8): ../include/byteorder.h ! (cd $(SIG8DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..") ../include/byteorder.h ../include/inode.h: ! (cd ../aux; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" all) help.c: help.txt help.sh $(SHELL) help.sh help.txt > help.c *************** *** 90,96 **** # utils.o were compiled siggen: $(OSIGS) siggen.c utils.o nullsig.o $(CC) $(CFLAGS) $(LDFLAGS) -o siggen siggen.c $(OSIGS) nullsig.o utils.o $(LIBS) ! config.lex.c: config.pre.l $(LEX) config.pre.l mv lex.yy.c config.lex.c --- 90,96 ---- # utils.o were compiled siggen: $(OSIGS) siggen.c utils.o nullsig.o $(CC) $(CFLAGS) $(LDFLAGS) -o siggen siggen.c $(OSIGS) nullsig.o utils.o $(LIBS) ! config.lex.c: config.pre.l $(LEX) config.pre.l mv lex.yy.c config.lex.c *************** *** 110,116 **** -rm -f $(OFILES) config.lex.c config.pre.c y.tab.c lex.yy.c help.c \ siggen.o twconvert.o core .pure cscope.out for i in $(SIGDIRS); do \ ! (cd $$i; make clean;) \ done --- 110,116 ---- -rm -f $(OFILES) config.lex.c config.pre.c y.tab.c lex.yy.c help.c \ siggen.o twconvert.o core .pure cscope.out for i in $(SIGDIRS); do \ ! (cd $$i; $(MAKE) clean;) \ done *** ./src/utils.c Mon Jul 25 12:23:16 1994 --- ../tripwire-1.2/./src/utils.c Tue Feb 9 14:23:15 1999 *************** *** 697,703 **** print_perm((uint32)statbuf.st_mode); ! (void) printf(" %-9.9s %7d %s", owner, statbuf.st_size, a_time + 4); printf(" %s\n", name); --- 697,703 ---- print_perm((uint32)statbuf.st_mode); ! (void) printf(" %-9.9s %7lld %s", owner, (long long) statbuf.st_size, a_time + 4); printf(" %s\n", name); *** ./include/config.h Fri Jul 15 07:02:52 1994 --- ../tripwire-1.2/./include/config.h Tue Feb 9 17:38:17 1999 *************** *** 93,99 **** * *********************************************************************/ - /* #if !defined(SYSV) || (defined(SYSV) && (SYSV > 2)) # define CONFIG_PATH "/usr/adm/tcheck" # define DATABASE_PATH "/usr/adm/tcheck/databases" --- 93,98 ---- *************** *** 101,110 **** # define CONFIG_PATH "/usr/local/adm/tcheck" # define DATABASE_PATH "/usr/local/adm/tcheck/databases" #endif - */ #define CONFIG_PATH "/tmp/genek" #define DATABASE_PATH "/tmp/genek" /******* name of Tripwire files ************************************** * --- 100,111 ---- # define CONFIG_PATH "/usr/local/adm/tcheck" # define DATABASE_PATH "/usr/local/adm/tcheck/databases" #endif + /* #define CONFIG_PATH "/tmp/genek" #define DATABASE_PATH "/tmp/genek" + */ + /******* name of Tripwire files ************************************** * *** ./tests/Makefile Wed Dec 15 18:03:40 1993 --- ../tripwire-1.2/./tests/Makefile Tue Feb 9 17:20:19 1999 *************** *** 32,38 **** $(SHELL) test1.sh "$(HOSTNAME)" $(DIST) ../src/tripwire: ! (cd ..; make all) clean: rm -f tw.db_TEST.@ @tw.config createfiles $(TEMPFILE) OKSIGS $(TESTDIR)/t_file* OKEXER --- 32,38 ---- $(SHELL) test1.sh "$(HOSTNAME)" $(DIST) ../src/tripwire: ! (cd ..; $(MAKE) all) clean: rm -f tw.db_TEST.@ @tw.config createfiles $(TEMPFILE) OKSIGS $(TESTDIR)/t_file* OKEXER *** ./tests/test.inter.sh Tue Feb 22 02:46:19 1994 --- ../tripwire-1.2/./tests/test.inter.sh Tue Feb 9 17:20:05 1999 *************** *** 104,109 **** --- 104,112 ---- # save a copy cp ./databases/* $SAVETWDB + + # delay to force real timestamp changes + sleep 1 EOF cat << 'EOF' > $MYCREATETWCONF *** ./tests/test.update.sh Tue Feb 22 02:46:22 1994 --- ../tripwire-1.2/./tests/test.update.sh Tue Feb 9 17:20:09 1999 *************** *** 103,108 **** --- 103,111 ---- # save a copy cp ./databases/* $SAVETWDB + + # delay to force real timestamp changes + sleep 1 EOF cat << 'EOF' > $MYCREATETWCONF *** ./tests/test.escape.sh Sat Dec 11 20:39:05 1993 --- ../tripwire-1.2/./tests/test.escape.sh Tue Feb 9 17:20:45 1999 *************** *** 102,107 **** --- 102,110 ---- # save a copy cp ./databases/* $SAVETWDB + + # delay to force real timestamp changes + sleep 1 EOF cat << 'EOF' > $MYCREATETWCONF *** ./Makefile Mon Jul 25 11:59:41 1994 --- ../tripwire-1.2/./Makefile Tue Feb 9 13:23:24 1999 *************** *** 52,58 **** #CFLAGS = -OG # Pyramid OSx #CFLAGS = -O -Kold # Pyramid DC/OSx (SVR4) #CFLAGS = -DTW_TYPE32='int' # DEC OSF/1 Alpha (or any other architecture ! # where int [but not long] is a 32 bit quantity) # a C preprocessor (to build inode.h) CPP = $(CC) -E # common --- 52,58 ---- #CFLAGS = -OG # Pyramid OSx #CFLAGS = -O -Kold # Pyramid DC/OSx (SVR4) #CFLAGS = -DTW_TYPE32='int' # DEC OSF/1 Alpha (or any other architecture ! # # where int [but not long] is a 32 bit quantity) # a C preprocessor (to build inode.h) CPP = $(CC) -E # common *************** *** 63,69 **** LDFLAGS= # common #LDFLAGS= -non_shared # OSF/1 #LDFLAGS= -Bstatic # SunOS 4 (cannot statically link tripwire ! # on Solaris 2.3) #LDFLAGS= -dn # Pyramid DC/OSx (SVR4) # libraries --- 63,69 ---- LDFLAGS= # common #LDFLAGS= -non_shared # OSF/1 #LDFLAGS= -Bstatic # SunOS 4 (cannot statically link tripwire ! # # on Solaris 2.3) #LDFLAGS= -dn # Pyramid DC/OSx (SVR4) # libraries *************** *** 96,126 **** DIST = tripwire-1.2 all: ! (cd aux; make CC=$(CC) CFLAGS="$(CFLAGS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) all) ! (cd src; make CC=$(CC) CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) \ YACC="$(YACC)" LEX="$(LEX)" all) install: all ! (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install) ! (cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install) test: all ! (cd tests; make HOSTNAME=$(HOSTNAME) DIST=$(DIST) SHELL=$(SHELL) \ ! CC=$(CC)) clean: ! (cd src; make clean) ! (cd man; make clean) ! (cd aux; make clean) ! (cd tests; make clean) rm -f core clobber: clean ! (cd src; make clobber) ! (cd man; make clean) ! (cd aux; make clean) ! (cd tests; make clean) rm -f core rm -f */*_pure_*.o sigs/*/*_pure_*.o --- 96,126 ---- DIST = tripwire-1.2 all: ! (cd aux; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" all) ! (cd src; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" \ ! LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" \ YACC="$(YACC)" LEX="$(LEX)" all) install: all ! (cd src; $(MAKE) INSTALL="$(INSTALL)" DESTDIR="$(DESTDIR)" install) ! (cd man; $(MAKE) INSTALL="$(INSTALL)" MANDIR="$(MANDIR)" install) test: all ! (cd tests; $(MAKE) HOSTNAME="$(HOSTNAME)" DIST="$(DIST)" \ ! SHELL="$(SHELL)" CC="$(CC)") clean: ! (cd src; $(MAKE) clean) ! (cd man; $(MAKE) clean) ! (cd aux; $(MAKE) clean) ! (cd tests; $(MAKE) clean) rm -f core clobber: clean ! (cd src; $(MAKE) clobber) ! (cd man; $(MAKE) clean) ! (cd aux; $(MAKE) clean) ! (cd tests; $(MAKE) clean) rm -f core rm -f */*_pure_*.o sigs/*/*_pure_*.o