Commit Briefs
ensure that edited files get unlocked if the user types Ctrl-C at prompt (edit-ctrlc)
While editing files, temporarily disable the default SIGINT handler which does a long jump to displaying a command prompt. Otherwise we would jump away without removing our lock on the file and future attempts to edit the file would fail. Issue found by Tom Smyth.
fix make search path in bgpnsh and nshdoas directories
This Makefile grammar fix makes our build system independent of 'make obj', which is now an entirely optional step.
improve nsh.8 accuracy and general syntax
improve accuracy of description of what happens nsh when you start it as root and non root user improved syntax compliance (cleaning up mandoc -Tlint nsh.8 output
make mantab.c compile without 'make obj'
The requirement to run 'make obj' before 'make' keeps getting in the way when nsh is compiled as part of the ports infrastructure.
include stdio.h explicitly in utf8.c
extern.h depends on stdio.h because of FILENAME_MAX. wchar.h will stop pulling in stdio.h, hence break the build in utf8.c which will no longer pull in stdio.h. Patch by tb@
use restricted less for pager for manual
Spotted and reported by sonic ... fixed by stspdotname (thanks ) "LESSSECURE=1" environment variable used to disable shell through less pager
add sl_makestr() helper function
Written to support future rcctl support patches. ok chris
ensure that window size information is always initialized
Fixes a divide-by-zero crash reported by sthen@. To reproduce: printf 'show\nshow run\n' > /tmp/nsh.script nsh -i /tmp/nsh.script ok chris
fix off-by-one in step_optreq() loop termination condition
This makes ctl handlers with 6 arguments work as expected. ok chris
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