Commits
- Commit:
b740cdab60ff405858fb711d34f96b7fe9f2584a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number for release
- Commit:
343280d8286d4c7bfe0b328389109bccc690ebec
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
missed two makefiles for DESTDIR to PREFIX conversion
- Commit:
6a603ffe8db39b05928a7913530d980bd4f10aa4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use PREFIX instead of DESTDIR for better compatibility with OpenBSD ports
- Commit:
4d94c0a117dfae4e06cd3122cdba647466a2a7ea
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update ctl.c add Sentinal as caught and suggested by Stsp
Update ctl.c add Sentinal as caught and suggested by Stsp
- Commit:
217211a3830a5c970e76426495e0315c2fa0b32f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync dist file list
- Commit:
45cf44c0fe92bdb06b495b06e1ad4c1169772e5d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
only create nsh database in privileged mode
Avoids noisy warnings on startup as a regular user when the
database does not exist yet.
ok chris
- Commit:
b617ed0565d621d5b12fd717d75dc24d23958046
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that build timestamp is kept up-to-date on each build
- Commit:
e5e26f31af169d0dea45d50d05b27e42c6ebfbeb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make -current builds display build timestamp and compilation info in greeting
Suggested by Tom
- Commit:
63eda621ba3d2ebe9b75c7c2d4298b72de935252
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
generate man command tab-completion table with a script at build-time
This prevents the table from becoming out of date going forward.
There were a few tags in nsh.8 which weren't yet being displayed:
+ { "inet6", "Search for tag inet6", CMPL0 NULL, 0 },
+ { "powerdown", "Search for tag powerdown", CMPL0 NULL, 0 },
+ { "saveenv", "Search for tag saveenv", CMPL0 NULL, 0 },
And an error has been corrected:
- { "unsetenv", "Search for tag setenv", CMPL0 NULL, 0 },
+ { "unsetenv", "Search for tag unsetenv", CMPL0 NULL, 0 },
- Commit:
16a04e0fcc6f8084731bf3279fff9f2a422bad4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a dhcp restart command; requested by Tom
- Commit:
eb5d12f955f3d56f05ad6ec160eba2786b113dd8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix sqlite API error handling
- call sqlite3_errmsg(db) before closing the db, not after
- sqlite3_errmsg() can only be used when sqlite3_step() returns SQLITE_ERROR
- check for errors from sqlite3_finalize()
- close db handle even when an error occurred during sqlite3_open()
with suggestions from chris
testing + ok tom
- Commit:
dd054fead9185c4e49b5985abed6b555cd29ecbe
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Fix dhcpd handling with respect to rdoamins
Run dhcpd in the correct rdomain when rdomain is != 0 and start dhcpd with
a list of interfaces on its command line. All interfaces must be in the
same rdomain; dhcpd will then set its own rdomain accordingly.
Use a separate DHCP lease database per rdomain just in case a given MAC
and IP tuple appears in multiple rdomains.
earlier version ok + testing by Tom
- Commit:
85c6a750079d9a9f6d6d41f565f5eaaa6e11144c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow T_HANDLER to process any number of arguments between 0 and 6
This way we can write handlers that accept all arguments listed in their
ctl table as actual arguments, rather than passing unused parameters which
contain ununitialized garbage.
The benefit is better clarity about the expected values of arguments passed
on by handler functions. Adjust motd and crontab handlers accordingly which
use T_HANDLER. All instances of call_editor() now use T_HANDLER_FILL1.
ok chris
- Commit:
b99c9f3f176c3755b6d2490580abcd61931231bf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix conversion of struct ctl2->table to struct ctl->table
The old code would only convert the first command table entry to a
dummy struct ctl sitting on the stack. This confuses code which loops
over the command table and requires a sentinel to break out of this loop.
Segfault found by Tom
- Commit:
51640dae4f57867a9261104ee4618d43a1e3ced6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
detect ambiguous matches from genget on a ctl2 table
Cannot happen right now since the table has only one entry but better
be prepared for a future where we would crash otherwise.
- Commit:
8f5b5e45a980c2f2bf7106963a74aa8558469d7b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
repair "write-config" command which broke with introduction of struct ctl2
Writing any changes to dhcp config was causing "genget internal failure".
Regression found by Tom.
- Commit:
0b2393c6d725b6b3d75b61dd387fce4836cf24db
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
always keep basic environment variables intact after 'enable' command
Make nshdoas preserve some important environment variables even when
there is no rule in /etc/doas.conf. Without a matching rule in doas.conf
we ended up running the privileged shell in an empty environment, which
leads to tools such as vi(4) erroring out for lack of a terminal type.
As before, the keepenv option in /etc/doas.conf can be used to preserve
the entire user environment.
We now preserve the following variables by default:
DOAS_USER=nsh # added by nshdoas
HOME=/root # overridden by nshdoas
LOGNAME=root # overridden by nshdoas
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
SHELL=/usr/local/bin/nsh
TERM=xterm
USER=root # overridden by nshdoas
Problem noticed by Tom.
- Commit:
df1b71b4ffb08376e1c36576d0cb9ba9456cbeba
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce struct ctl2 with backwards compat wrappers
The new struct avoids the necessity to cast configuration file test handler
arguments from char ** to a char *, such that the char ** pointer can be
stored in ctl->args[1].
Such shadowing of variable types results in code that is hard to follow.
We can convert daemons one-by-one to fully replace struct ctl eventually.
As an example, convert dhcpd handling to struct ctl2 already.
Ok tom, chris
- Commit:
e05df6135adc342714e1eb0aa52000db39b6010c
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Merge pull request #143 from smytht/master
Improve Readme by converting to markdown and adding a quick installation guide for nsh
- Commit:
46c96f53ccd68549c97b2d487e0c2ac9ee4fbd57
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md use email addresses proper
Update README.md use email addresses proper
- Commit:
5b66ac0b69d9684f9579c5cef44a1d4c41993249
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
backout previous dhcp rdomain commits
I forgot that these diffs only work correctly with the &fillargs
patch which has been backed out. This needs more work before it
can come back...
- Commit:
00e8db465653edc90186beafdf38e122b3b18cb5
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md fix typo
fix typo screen not scree
- Commit:
2d3516ed898463fd58314a74d781b842857315ed
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a separate DHCP lease database per rdomain
ok Tom
- Commit:
58ba5c905845bb208f71a354da42ad592c86c538
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md fix number formats
Update README.md fix number formats
- Commit:
0698bd5fd36695ee913ac16345bcaf7dc83d2dbf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
run dhcpd in the correct rdomain when rdomain is != 0
test + ok Tom