Commit Briefs

355d1fd4a8 Stefan Sperling

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.



957f3c72fb Stefan Sperling

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.


73decf3449 GitHub

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


b0b69440cc Stefan Sperling

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.


52251c6854 Stefan Sperling

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@


00166cee7f GitHub

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


dd8d34bfed Stefan Sperling

add sl_makestr() helper function

Written to support future rcctl support patches. ok chris


41d076f23c Stefan Sperling

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


5a6c9083c6 Stefan Sperling

disable interactive mode if -c or -i options are used

ok chris


b9aa984d56 Stefan Sperling

fix off-by-one in step_optreq() loop termination condition

This makes ctl handlers with 6 arguments work as expected. ok chris



148870ff89 Stefan Sperling

document the release process; requested by Tom


615e468d94 GitHub

Merge pull request #144 from sthen/patch-2

fix motd permissions in integration scripts


ee429a4180 GitHub

/etc/motd should be world-readable


2a9ef7a8ee Stefan Sperling

remove version number from README.md

we will probably always forget to update it here like I just did


ef69a664bb GitHub

/etc/motd should be world-readable


b740cdab60 Stefan Sperling

bump version number for release (tags/v1.2)


21fe5c7040 GitHub

/etc/motd should be world-readable


343280d828 Stefan Sperling

missed two makefiles for DESTDIR to PREFIX conversion



4d94c0a117 GitHub

Update ctl.c add Sentinal as caught and suggested by Stsp

Update ctl.c add Sentinal as caught and suggested by Stsp


217211a383 Stefan Sperling

sync dist file list


45cf44c0fe Stefan Sperling

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


b617ed0565 Stefan Sperling

ensure that build timestamp is kept up-to-date on each build