Commit Briefs
add commands to control syslogd (syslog2)
Currently supported syslog commands: syslog no syslog syslog reload syslog inet4 no syslog inet4 syslog inet6 no syslog inet6 syslog socket PATH syslog custom-ca PATH syslog system-ca syslog client-cert PATH no syslog client-cert syslog client-key PATH no syslog client-key syslog loghost no syslog loghost
Merge pull request #144 from sthen/patch-2
fix motd permissions in integration scripts
remove version number from README.md
we will probably always forget to update it here like I just did
bump version number for release (tags/v1.2)
Update ctl.c add Sentinal as caught and suggested by Stsp
Update ctl.c add Sentinal as caught and suggested by Stsp
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
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 },
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
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
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