Commits


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 cna 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.


Update rc.local-nsh-openbsd-integrate.sh Update script to copy config files not move them so that the user can return to using OpenBSD and standard config more easily.


when an exec() call fails then show which command nsh was trying to run


Update rc.local-nsh-openbsd-integrate.sh Update to syntax to fix asking of question


Create rc.local-nsh-openbsd-integrate.sh add a less intrusive script to use nsh for configuring an OpenBSD system.


Update README fixking typos etc. Update README fixking typos etc.


move nsh rc.d script to shell directory and remame it to nsh.rc to indicate it is intended to be used by rcctl in /etc/rc.d/


Update Makefile to remove scripts from Makefle


Merge branch 'master' of https://github.com/yellowman/nsh


move test scripts to nshrc directory


Update Makefile to indlude scripts directory


improve nsh scripts directory structure Improve NSH scripts directory structure


Delete scripts directory


Create bin Make scripts directory names more useful


tidy up our temporary nshenv file if fdopen() fails (highly unlikely)


avoid potential corruption of ~/.nshenv during saveenv Write to a temporary file and rename on top of ~/.nshenv instead of modifying the file in-place.


more nshdoas documentation wording tweaks for clarity


docs: make the security warning about root access more prominent


documentation updates for nshdoas


Create nsh.rc for inclusion in /etc/rc.d automatically with make install


retry with root password if user forgets their own ok Tom


fall back on root password if /etc/doas.conf cannot be read ok Tom


fix bogus pointer being passed to fill_tmpfile() for T_HANDLER_FILL1 The actual list of arguments was not passed to the handler. Instead the handler got garbage in the argument list. ok Tom


add nshdoas to fix the 'enable' command when stdin is not a TTY nshdoas is based on doas(1). It reads /etc/doas.conf and asks for the root password in case no matching rule exists. This avoids the need to fall back on su(1) and makes it possible to use the 'enable' command when sending nsh commands on standard input. ok Tom


allow nsh to change its behaviour when standard input is not a TTY Introduce an 'interactive_mode' flag which indicates whether standard input is a TTY. This allows nsh to accept commands on standard input for scripting purposes. This will be needed for better integration of at(1). The 'enable' command will not work in non-interactive mode yet. This will be fixed soon. ok tom