| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
... by setting FILE* properties and replace the explicit flushes.
Explicit flushing couldn't be well done e.g. for lua's error() function.
In particular, we had problems with journald not getting logs timely.
|
|
|
|
|
|
| |
After 83539eb7f it was a bit complicated. It allowed to save a memcpy
of the address in case no port was specified, but we only need to do the
split when changing configuration, so it was overzealous optimization.
|
| |
|
|
|
|
| |
It's often a bit shorter, and it provides us with location.
|
|
|
|
|
|
| |
Now we don't rewrite the port-splitters in command line by zero bytes.
That was confusing the output of some SW showing the command-line
of running kresd.
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's now a directory, one C file for each lua table of functions.
We get more total lines due to per-file copyright headers,
but the original file was just too long (nearing 2k lines).
The layout was inspired by the lib/cache/ split.
Disadvantage: git operations (e.g. blame) will stumble on this commit.
During the move, rename the "str" and "xstr" macros, too.
Otherwise there are no real changes, as they would be hard to spot.
|
|
|
|
|
|
| |
The script has been unused for longer time.
Almost all remaining C warnings are just "FIXME" comments :-)
and I didn't touch the JS warnings.
|
| |
|
|
|
|
|
| |
In particular, redirection from a file was leading to abort(),
so we provide an error message instead.
|
| |
|
| |
|
| |
|
|
|
|
| |
I see no use to handle write() return codes in *this* function.
|
|
|
|
|
|
|
| |
When suspect SIGBUS happens, print helpful error and try to remove
the cache, so that the service might work again if auto-restarted.
Theoretically we could longjmp() out of the SIGBUS handler,
but that would be rather messy, so let the process die.
|
|
|
|
|
|
| |
Previously we were using names "Knot DNS Resolver" and "Knot Resolver"
interchangibly and the prefix "Knot DNS" was somehow confusing users.
Let's see if this rebranding actually helps or not.
|
|
|
|
| |
It does almost nothing, currently.
|
|
|
|
|
| |
It mostly worked, just by accident.
I see no use for negative initialization in this case.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Arguments --keyfile, -k for managed mode
and
--keyfile-ro, -K for unmanaged (readonly) mode.
Automatic setting based on the file permission is removed because it was
confusing and could easily lead to state where automatic update does not
happen because of unexpected file permissions.
Check if folder is writeable was moved into Lua code.
Default unmanaged keyfile path can be specified at compile
time with option KEYFILE_DEFAULT. This default
configuration can be disabled in configuration file with
trust_anchors.keyfile_default = nil.
|
| |
| |
| |
| |
| |
| |
| | |
this helps avoid false positive leaks caused by combination of
cleanup functions and goto
refs #291
|
| | |
|
|\| |
|
| |
| |
| |
| | |
connection
|
|/
|
|
| |
also disabled priming and TA signalisation during tests
|
|
|
|
| |
I'm sorry. Buggy commit: 2ba2a5e8
|
|
|
|
|
|
| |
We can ignore the signal, as the affected libuv calls report error
by returning EPIPE anyway.
Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/271
|
|
|
|
|
|
| |
- move it to utils.c, so it's sensitive to later changes in verbosity
- don't mark the lines with [tls], as they may come through libdnssec
- use stdout like other verbose messages, instead of stderr (real errors)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Stop IPC after getting an error. One point is the situation when one
of the forks ends for some reason, which lead to problems.
Another point is pipes getting out of sync.
Smaller changes:
- don't free the handle while it's still half-in-use
- don't fully panic here because of ENOMEM, just stop IPC
Fixes https://gitlab.labs.nic.cz/knot/knot-resolver/issues/150
|
| |
|
|
|
|
|
| |
... even if rundir isn't specified. No other changes in semantics.
Before this a typo in config path would pass silently.
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
engine_cmd() doesn't print the error() exceptions thrown from lua;
it only leaves the message on lua stack.
|
|\ \
| | |
| | |
| | |
| | | |
Fix -k argument processing to avoid out-of-bounds memory accesses
See merge request !195
|
| |/
| |
| |
| |
| |
| |
| | |
Mangling of keyfile_dir and allocation of keyfile_path led to rare
crashes (and Valgrind complaints).
The error was introduced in 21f3a6b9d0ed3b4ae05d4d1f1612f0f277235723.
|
| | |
|
| |
| |
| |
| |
| | |
This might help if the lua command returns an unexpected number of
arguments.
|
| |
| |
| |
| | |
That's to allow tunnelling the TTY to a different endian.
|
| | |
|
| |
| |
| |
| | |
It was possible to write past the end of the buffer, if very unlucky.
|
| | |
|
|/
|
|
| |
... via "__binary" pseudocommand
|