Commit Graph

1070 Commits

Author SHA1 Message Date
Timothy Stack
b216993760 [tests] missed a format file in the makefile 2016-08-23 06:50:01 -07:00
Timothy Stack
5539e21c05 [log-format] fix line-format where a variable can span lines
Fixes #337
2016-08-23 06:34:18 -07:00
Timothy Stack
876b37ade0 [log-format] add "truncate" overflow value 2016-08-22 23:28:14 -07:00
Timothy Stack
c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
2016-08-22 06:45:27 -07:00
Timothy Stack
9ee18c26d3 [log-format] add min-width and align options to line-format
Also some fixes for validating the format definitions.

Fixes #338
2016-08-21 21:34:52 -07:00
Timothy Stack
41854cf637 [json-log] custom date formats
Fixes #341
2016-08-18 22:15:35 -07:00
Timothy Stack
4d091988a0 [release] some more work on the release build 2016-08-06 15:23:23 -07:00
Tim Stack
3a22d8c5f8 Merge pull request #335 from sureshsundriyal/freebsd
[freebsd] Fix out of source builds
2016-07-31 21:30:17 -07:00
Suresh Sundriyal
87590aab6b [freebsd] Revert the bump gcc to 4.8.
Updated the incorrect section.
2016-07-30 21:39:13 -07:00
Suresh Sundriyal
f2cb5c80d8 Revert "[freebsd] Install automake before kicking off the build."
This reverts commit 08ab680492.
2016-07-30 19:15:41 -07:00
Suresh Sundriyal
936afab0cc [freebsd] Use GNU Make
Either Autotools is producing a makefile that FreeBSD make does not like
or FreeBSD make does not like pattern rules anymore. Or more plausibly,
we are not invoking autogen.sh correctly.
2016-07-30 19:13:23 -07:00
Suresh Sundriyal
08ab680492 [freebsd] Install automake before kicking off the build. 2016-07-30 17:06:15 -07:00
Suresh Sundriyal
6cea55ae3d [freebsd] More out of source build related fixes. 2016-07-30 16:50:25 -07:00
Suresh Sundriyal
7c670bc730 [freebsd] Fix out of source builds 2016-07-30 16:04:41 -07:00
Tim Stack
25593204e2 Merge pull request #334 from sureshsundriyal/freebsd
[freebsd] Partial fix for the release builds.
2016-07-28 23:14:07 -07:00
Suresh Sundriyal
438ab2c9d4 [freebsd] Some more build related fixes. 2016-07-28 20:32:24 -07:00
Suresh Sundriyal
759eb53f01 [freebsd] Partial fix for the release builds.
The default gcc toolchain on freebsd has been bumped to 4.8 so the build
scripts that hardcoded the gcc binary name are getting confused.

The new version of SQLite seems to be getting confused between editline
and readline.
2016-07-28 20:03:43 -07:00
Timothy Stack
e8ba6b4921 [release] update some dependency versions 2016-07-28 08:49:21 -07:00
Timothy Stack
8dbf018814 [loader] the loader was not converting the level name to the enum value correctly
Closes #329
2016-06-30 21:59:51 -07:00
Tim Stack
2f0d645a26 Merge pull request #328 from elyscape/glog-spacing
[fmt] Fix glog_log format
2016-06-30 21:29:40 -07:00
Eli Young
5602af33f8 [fmt] Fix glog_log format
The log format used by glog uses spaces to left-pad the thread to 7
digits, per the code:

https://github.com/golang/glog/blob/65d6746/glog.go#L577

This fixes the regular expression to correctly match the extra
whitespace.
2016-06-30 18:36:45 -07:00
Tim Stack
5676d19981 Update README.md
Update appveyor links
2016-06-04 12:52:32 -07:00
Tim Stack
30c1738bd9 Merge pull request #324 from saaguero/appveyor
Add cygwin continuous integration through appveyor
2016-06-01 11:14:13 -07:00
saaguero
d0b5e4c11e Add cygwin continuous integration through appveyor 2016-05-31 10:18:37 -03:00
Timothy Stack
5d12eed17e fix a bug related to hide-extra for json logs 2016-05-13 20:06:57 -07:00
Tim Stack
91633d089f Merge pull request #320 from sureshsundriyal/db-attach
[secure-mode] Disallow ATTACH statements completely.
2016-05-04 21:18:33 -07:00
Suresh Sundriyal
6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
2016-05-04 20:21:01 -07:00
Timothy Stack
a81db3f41d fix summary overlay on linux 2016-05-03 21:31:47 -07:00
Timothy Stack
fbbedfea48 [build] try to silence some warnings 2016-05-03 21:12:53 -07:00
Timothy Stack
c564beee29 [build] try to silence some warnings 2016-05-03 21:01:39 -07:00
Timothy Stack
deccd51bdf [mouse] update the status line when the mouse is enabled/disabled 2016-05-03 20:47:52 -07:00
Tim Stack
1850c4f678 Merge pull request #318 from sureshsundriyal/db-attach
[secure-mode] Prevent users from attaching db files.
2016-05-03 10:37:03 -07:00
Timothy Stack
5ea5504aec [time] fix time rollover for days
Fixes #304
2016-05-03 06:43:00 -07:00
Suresh Sundriyal
a13047a9ed [secure-mode] Check to see if URIs are enabled.
Check to see if URIs are enabled or not before continuing on with the
file uri checks.
2016-05-03 02:11:33 -07:00
Timothy Stack
a4deaa1e8b [spectro] log_time must be in ascending order 2016-05-02 22:59:04 -07:00
Suresh Sundriyal
1e6878164f [secure-mode] Refactoring and check for sqlite version.
'mode=memory' query parameter is only supported from sqlite3 version
3.8.0 onwards. Make sure to check for the version before continuing with
the 'ATTACH' statement.

Turning off some of the tests, since they fail on the Travis CI setup
which uses sqlite version 3.6.0.
2016-05-02 21:43:11 -07:00
Suresh Sundriyal
e6c87678e9 [secure-mode] Prevent users from attaching db files.
Prevent the users from attaching an external db file which they may not
have ownership of.

The current authorizer method is hooked in only when the LNAVSECURE
variable is set. This is done deliberately, since the method will be
called on every sqlite query and I did not want to incur a performance
hit.

If the scope of this authorizer increases, we should consider passing in
the lnav_data as pUserData and do the checks inside the authorizer
itself.
2016-05-02 20:58:20 -07:00
Timothy Stack
834fea5f73 oops, left debugging stuff in 2016-05-01 20:37:45 -07:00
Timothy Stack
82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
2016-05-01 20:35:37 -07:00
Timothy Stack
3167302722 [data-parser] fix some issues with parsing hierarchical data and improve the debugger 2016-04-28 23:34:13 -07:00
Timothy Stack
1477c2ae51 [text-view] swap the rotation of f/F to something more natural 2016-04-26 21:25:28 -07:00
Suresh Sundriyal
4a0d2c0be3 [documents] Fix the NEWS file. 2016-04-23 14:32:21 -07:00
Suresh Sundriyal
e4ef35e652 [commands] Remove eval from the list of sandboxed commands. 2016-04-23 11:18:01 -07:00
Suresh Sundriyal
88833c8035 [commands] Read and honor the 'LNAVSECURE' environment variable.
Read the value of the 'LNAVSECURE' environment variable upfront and
store it in the lnav_data structure. When this variable is set prior to
the binary execution, the following commands are disabled:

* 'open'
* 'pipe-to'
* 'pipe-line-to'
* 'write-*-to'

This is a proposed fix for tstack/lnav#305.
2016-04-23 10:34:17 -07:00
Timothy Stack
54b9c5ebf5 [parser] handle empty groups 2016-04-12 06:18:26 -07:00
Timothy Stack
2b76181fd6 [parser] try to handle apostrophes better 2016-04-11 08:39:16 -07:00
Timothy Stack
a8cd28097b [spectro] add some better error messages for the spectrogram command and fix some vtable glitches 2016-04-08 06:21:58 -07:00
Timothy Stack
efc74a5a0e [docs] some minor doc updates 2016-04-05 06:22:25 -07:00
Timothy Stack
96191badf3 [release] update versions for release and fix some time issues 2016-04-04 23:55:43 -07:00
Timothy Stack
cbe3541366 [spectro] add tab-completion for DB column names 2016-04-03 21:15:51 -07:00