Commits
- Commit:
2cca9bd6cf03e750edb3b76d1cfd5bff1cb51953
- 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 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.
- Commit:
b89991056cdba3650e3f4782b0a938b3c38116f9
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
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.
- Commit:
13b060f0bd029db1742acb1f3722c05cf079f2b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
when an exec() call fails then show which command nsh was trying to run
- Commit:
c016e86ddbf2ffad50ccfdab9c0fa810917fbb2d
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update rc.local-nsh-openbsd-integrate.sh
Update to syntax to fix asking of question
- Commit:
89c9e1fac50fdec21dcd996aa9c5d1487d365ff7
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Create rc.local-nsh-openbsd-integrate.sh
add a less intrusive script to use nsh for configuring an OpenBSD system.
- Commit:
b05505961b0b0e16484787ffbcbf5e39cac8f9d4
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README fixking typos etc.
Update README fixking typos etc.
- Commit:
31a4cb8de03ade49d2ddda9ba21e27f3baacbae4
- From:
- smytht <tom.smyth@wirelessconnect.eu>
- Date:
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/
- Commit:
71ccd9e6bb261496dec7da4d8c93d4478312751c
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update Makefile to remove scripts from Makefle
- Commit:
3771db69a311820143adcff3d3d726b727b1fabe
- From:
- smytht <tom.smyth@wirelessconnect.eu>
- Date:
Merge branch 'master' of https://github.com/yellowman/nsh
- Commit:
dd9d39d99c592659e69ad8ef52473cfdfd4357e2
- From:
- smytht <tom.smyth@wirelessconnect.eu>
- Date:
move test scripts to nshrc directory
- Commit:
a8f7ea0d8785739d73c5f414f27a72962c6e2995
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update Makefile to indlude scripts directory
- Commit:
22278c7a3ec42075f3bb8a2270ac8024eb074455
- From:
- smytht <tom.smyth@wirelessconnect.eu>
- Date:
improve nsh scripts directory structure
Improve NSH scripts directory structure
- Commit:
a24278572f987c848dd4dac094e80008a84ac37f
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Delete scripts directory
- Commit:
a16f2b4445be88497d7aa89ae9b18e0df28f774c
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Create bin
Make scripts directory names more useful
- Commit:
6555de0502240fc8735e455cacfc720b8e39bd37
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tidy up our temporary nshenv file if fdopen() fails (highly unlikely)
- Commit:
0583c4cc97a2206fc4cb5a33bc46d12b934a1c30
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
44f8036e904cc038f2370d7f1736e16683f7d128
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
more nshdoas documentation wording tweaks for clarity
- Commit:
f3c9e061f375b34a3c2171dfbb3d2022c4873ded
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
docs: make the security warning about root access more prominent
- Commit:
34d49fbad26938c1345be283ce3469f62b0b2225
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
documentation updates for nshdoas
- Commit:
dc5f01ba2d411271db7c872cca1db85e12efa1a3
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Create nsh.rc for inclusion in /etc/rc.d automatically with make install
- Commit:
8dfba55ff795ba4f73e69632c81730b511219819
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
retry with root password if user forgets their own
ok Tom
- Commit:
22b8b17504cfc3059705404a6d3cd64a8dec02c6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fall back on root password if /etc/doas.conf cannot be read
ok Tom
- Commit:
1bb61b1da84f5690f3125d4f6595b833632622b4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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
- Commit:
330fe27c7fd1e395ae626f5b6e64cf527f0ae951
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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
- Commit:
05ca4b38cd54ee0825808837fb61a618a9d5f894
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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