Commits
- Commit:
4b49d4df7ae7848563db762ed39910d20c9c4c8c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
silence ifconfig errors related to carp demotion at boot time
This happens when nsh is started by /etc/rc.d/nsh during boot.
The /etc/rc script starts package scripts with carp-interlock already
enabled, and both ifconfig and nsh would attempt to reset the carp
demotion counter. Generally, this is harmless, apart from an error
message displayed by ifconfig which might mislead users into assuming
there was a problem:
starting package daemons: nsh.
ifconfig: carp: SIOCSIFGATTR: Invalid argument
To avoid this issue, nsh can check whether the demotion counter has
already been set to the desired level and only change the counter if
changing it is indeed required.
- Commit:
ddce9e236b5cbab80ad195840f427d4e19f39b97
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid use of uninitialized variable 'sin'
found by codechecker
- Commit:
76ca4378889d6b4f0a57484f499ef07aabc7e968
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
call getprogname(3) instead of reading __progname which is reserved
found by codechecker
- Commit:
0afff63a215ca55111f18c1d86ef86b7673cca8e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ifmedia words are 64 bit wide on openbsd
found by codechecker
- Commit:
84d6fbcbec1d1485b243531411bc4d8ab071fafb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle SIGWINCH in a signal-safe way
The setwinsize() function calls an ioctl which is not async-signal-safe.
Use a safe signal handler and change window size in command loop instead.
found by codechecker
- Commit:
3ce23c08d0d60bb7cba4f349d1a95b893d6b8e0b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
left-shift by 32 bits needs to use unsigned long long
found by codechecker
- Commit:
ed1844176011f28206a6be689f50b68a591770b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
need to free vis on error in mbs2ws()
found by codechecker
- Commit:
c550e428fb249028df8f7d2d39a06b3a06cc77eb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug file descriptor leak in who.c
found by codechecker
- Commit:
50e10c0364479a0d46c3c4958d2f99ed6c412aa6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle edge-case of zero no-commands in complete_nocmd(); should not happen
found by codechecker
- Commit:
7988c7a7cafa0919e92d4885f120536c80021c47
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
must initialize ndp.c variable 'nbi' in case for-loop never runs
found by codechecker
- Commit:
cba0363734ed7319728d8219f00bdda543709521
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in growwgdata, preserve original pointer during realloc for freeing on error
found by codechecker
- Commit:
fd571e3ef4998485f4c5e94aa4615138c013dd49
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
preserve original pointer during realloc and free on error
found by codechecker
- Commit:
2a3c7d42fe7fd7fa34f4567b01a424ca9bdfa96b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
preserve original pointer during realloc() and free on error return
found by codechecker
- Commit:
d67e0bc072ee69d887db85a6d9173b69f3b4b0d6
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md improve formatting and spacing of NSH docs
- Commit:
ad9258adf731c2a392732473cbe81c6878809007
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md with latest manual and recent youtube videos on NSH
- Commit:
ef7d91bd78dd72ee4d02390d7115155a9ef0c084
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update README.md
Update with rendering from latest manual page
- Commit:
4ed090688671ef90c0ba6893ea68f23816cc56d2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow the interface command to work within an interface context
ok Tom
- Commit:
6eaf41b8f48d8bf640fc5fee0283fecad5784b7b
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Merge pull request #154 from smytht/exclamation-mark-change
! without arguments should not fork a new shell
- Commit:
0fa6b08d3c709fc60f694dc892e4ac47ecce9180
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reword an informative warning message such that it sounds less like an error
- Commit:
7c9055e02300c8bb057688f932f94e8c08231031
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Update commands.c
fix typo in exit command in bridge commands struct
- Commit:
d945a704d98083fcd665e03708be660ac41c261f
- From:
- smytht <tom.smyth@wirelessconnect.eu>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix typo in exit command in bridge commands struct
This is the intended change from commit cfd60254
- Commit:
6d3fba0f585933dacf3fe1d7a33775d50777c290
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
! without arguments should not fork a new shell
This Diff changes the behaviour of nsh interactively by checking if ! has been entered without any arguments,
if the user is in global config mode or privileged mode the user is returned to the same prompt. if the user is in interface config mode or bridge config mode
the user is returned to the global configuration mode This is to facilitate users copying and pasting nshrc configuration from one device to another interactively.
- Commit:
5d005592cbed24c89859e216bd4d9b4305116b47
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
backout: fix typo in bridge commands struct (missing) field for exit command
Unintended changes were mixed into this commit; discussed with Tom
- Commit:
fd4494f6c62ce7eaa7cea7fa32df287ee211d49b
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
Merge pull request #153 from stspdotname/pairfix
fix conf_patch to avoid overwriting the current interface being shown
I have reviewed the Code what stsp describes makes sense and the diff works and appears to solves the issue raised by ryan-sg
OK Tom
- Commit:
cfd602546a3a8599b29e70c9a9ae29fe747768d1
- From:
- smytht <smytht@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
fix typo in bridge commands struct (missing) field for exit command
fix typo in bridge commands struct (missing) field for exit command