Commit Graph

97 Commits

Author SHA1 Message Date
Brian Cox e42921d04a Caching & direct i/o stuff for HP-UX, via VX_xxx ioctls. 2016-06-09 18:35:40 -07:00
Brian Cox 3ce7d71749 Enable use of O_NOATIME on GNU/Hurd, via the _GNU_SOURCE macro. 2016-06-07 22:58:19 -07:00
Brian Cox c79a6af7b1 [OSX] Use CommonCrypto md5 & sha1 impls by default, with a --disable-commoncrypto configure option to disable them and use the old builtin impls. 2016-06-07 19:06:10 -07:00
Brian Cox 704829cbd5 Make Iconv optional, controlled by --enable-iconv; set package url & bugreport fields; detect OSX crypto lib (for hashes) but don't actually use it yet. 2016-06-07 01:57:00 -07:00
Brian Cox d9aa52e943 Add config.h.in to touchconfig script 2016-06-06 22:18:48 -07:00
Brian Cox c74198d7e9 Update touchconfig.sh for renamed configure.in -> configure.ac 2016-06-06 22:16:05 -07:00
Brian Cox 48a4392343 Update buildsys to automake 1.15 and fix resulting warnings. This involved an autoreconf -if, and then reverting config.guess and config.sub since they're actually newer than the ones automake wants to install, and they've been customized a bit to detect e.g. MidnightBSD 2016-06-06 19:51:38 -07:00
Brian Cox acddeb3ae2 Don't use broken mblen() on AROS 2016-06-04 00:15:29 -07:00
Brian Cox afd11628fd AROS build fix 2016-06-03 19:07:10 -07:00
Brian Cox 43d2ff1a04 Display multibyte characters properly, and accept them in interactive db update. 2016-06-01 22:08:25 -07:00
Brian Cox 4563812467 Define ICONV_SOURCE_TYPE properly for Minix 2016-05-29 15:25:06 -07:00
Brian Cox 48801a41a7 Add direct i/o for Solaris, via the directio() syscall. 2016-05-25 23:42:26 -07:00
Brian Cox 64a5bab856 Use both POSIX_FADV_SEQUENTIAL & POSIX_FADV_NOREUSE when scanning (if available) since they aren't mutually exclusive. 2016-05-25 12:14:55 -07:00
Brian Cox dbb7a57cdc Merge branch 'master' of https://github.com/brc0x1/tripwire-open-source 2016-05-24 18:50:12 -07:00
Brian Cox 0082db13fa Use O_NOATIME while scanning (if available) to avoid updating file access times. 2016-05-24 18:50:00 -07:00
Brian Cox 9214316bbd Align buffer on page boundary if user enables HASH_DIRECT (formerly DIRECT_IO); let user specify num blocks per read. 2016-05-16 19:32:38 -07:00
Brian Cox 5ffab7f278 Only posix_fadvise() on close if stream is nonnull, since fileno() segfaults (on Linux) if you try that. 2016-05-09 10:34:53 -07:00
Brian Cox 778c397d48 Update 'configure' for libiconv detection; only set HAVE_ICONV_H if header exists *and* an impl we can link with exists. 2016-05-06 23:33:04 -07:00
Brian Cox add9c7f6b9 Add a library check for iconv, since it works now and it doesn't always live in libc. 2016-05-06 21:09:49 -07:00
Brian Cox ec9b4317ca Fix & enable iconv() character conversion, instead of relying on cGoodEnoughConverter everywhere. 2016-05-06 18:47:56 -07:00
Brian Cox b543a36d89 Use posix_fadvise() maybe-correctly; only use O_DIRECT for hashing, if requested; better exception handling in fspropcalc & fsdatasourceiter to prevent errors scanning individual objects from blowing up the whole init/check. 2016-05-06 11:24:24 -07:00
Brian Cox eaca9fcedf Support posix_fadvise() where available; optionally enable O_DIRECT/F_NOCACHE if DIRECT_IO=true in tw.cfg; fix internal naming of update 'secure mode' flag for clarity. 2016-05-05 00:19:56 -07:00
Brian Cox ccf149c978 Bump version to 2.4.3.2 2016-04-25 15:38:14 -07:00
Brian Cox 816e5c7e8f Update buildsys to detect posix_fadvise() 2016-04-25 10:54:37 -07:00
Brian Cox 773e3b5487 Fix a couple of 'misleading indentation' warnings exposed by the big tab->spaces commit yesterday. 2016-04-23 12:34:04 -07:00
Brian Cox 6fc0714d3f Mention de-tab-ification in ChangeLog 2016-04-23 00:37:30 -07:00
Brian Cox 728795af3d Replace tabs with 4 spaces in all remaining OST code, since this inconsistency can now result in 'misleading indentation' warnings in GCC 6.0+. 2016-04-23 00:33:17 -07:00
Brian Cox 5819201c68 GCC 6's new 'misleading indentation' warning showed up a few times in OST, so this commit squashes all the current examples of that. Also adds Fedora 24 alpha 7 (x64) + gcc 6.0.0 to the list of tested platforms. 2016-04-22 18:27:02 -07:00
Brian Cox a488e1bfec Another batch of warning fixes, including several for gcc -Wparentheses 2016-04-21 00:48:28 -07:00
Brian Cox 0cb48a433a Squash more warnings, including char* / string constant ones in msystem & policy parser. 2016-04-21 00:16:14 -07:00
Brian Cox 210a394b1c Bump version to 2.4.3.1; update ChangeLog 2016-04-19 11:45:11 -07:00
Brian Cox fcd6c88ac1 Make sure we don't install twtest (the unit test binary) to /usr/local/sbin during a make install. 2016-04-18 23:13:21 -07:00
Brian Cox 00fb3538ab Add casts to short in yyparse.cpp, to avoid -Wnarrowing warnings. GCC 6.x will treat these as errors, so this needed to be fixed. It's probably better to regenerate the parser from the .y files in src/parser, but I'm told those specifically require MKS Toolkit lex & yacc, and don't work with GNU Flex/Bison. So I suspect that's going to be a longer-term project. 2016-04-18 15:46:27 -07:00
Brian Cox a9207128e2 Test fixes so twtest runs to completion, mostly by adding ifdef+todo for the time being. Also add twtest to .gitignore 2016-04-16 22:45:59 -07:00
Brian Cox 184ddc6091 Buildsys fixes for twtest 2016-04-16 21:44:06 -07:00
Brian Cox 677162cc6e Revive the old unit test suite. Needs autoconf/buildsys work, and tests don't all pass yet. 2016-04-16 19:16:32 -07:00
Brian Cox 7b183eab5e Merge pull request #2 from Tripwire/master
merge out from tripwire/master
2016-04-16 09:52:25 -07:00
Brian Cox ea361e91fe Fix warnings around explicitly calling base class constructors in copy constructors 2016-04-15 17:16:32 -07:00
Brian Cox 9e5dd61e39 Fix various compiler warnings; enable -Wextra warnings except for unused params. 2016-04-15 12:42:31 -07:00
Brian Cox 129ab9583d Merge branch 'master' of https://github.com/Tripwire/tripwire-open-source 2016-04-14 21:45:55 -07:00
Brian Cox f47e5e7a9d Resolve a bunch of non-virtual destructor warnings 2016-04-14 21:45:46 -07:00
Brian Cox 285d1db30d Merge branch 'master' of https://github.com/Tripwire/tripwire-open-source 2016-04-13 17:40:58 -07:00
Brian Cox f1a85a217b Tweak Readme to add Linux-PPC64 and Solaris SPARC as tested 2016-04-13 17:40:51 -07:00
Brian Cox a3bd6aec7d Merge pull request #3 from justinthiele/master
Fixed typo and superscripted registered marks in README.md
2016-04-12 11:18:49 -07:00
Brian Cox a47c49cfe1 Merge pull request #6 from brc0x1/master
Open Source Tripwire 2.4.3.0
2016-04-12 11:06:34 -07:00
Brian Cox 482febd7fb Update 'Packaging' file slightly 2016-04-12 11:03:24 -07:00
Brian Cox cc13d47044 Tweak ReadMe a bit more & add credit to clean script 2016-04-12 10:19:21 -07:00
Brian Cox b852b86e58 Remove -Wno-non-virtual-dtor compile arg, which suppresses warnings about non-virtual destructors. We don't actually get any of these warnings right now with the arg removed, but taking it out is a good practice anyway. 2016-04-12 09:31:19 -07:00
Brian Cox b6c6490227 Merge branch 'master' of https://github.com/brc0x1/tripwire-open-source 2016-04-12 09:19:47 -07:00
Brian Cox 36eee10956 Large file tweaks for e.g. 32-bit Linux; update ReadMe & ChangeLog again. 2016-04-11 20:29:37 -07:00