yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

show an error message if setting a sysctl fails #119

Closed stspdotname closed 1 year ago

stspdotname commented 1 year ago

This command now displays an error, as expected since modifying the sourceroute option requires securelevel 0:

nsh.my.domain(config-p)/ip sourceroute 1 % sysctl_int: sysctl: Operation not permitted nsh.my.domain(config-p)/

smytht commented 1 year ago

nsh(config-p)/ip sourceroute % sysctl_int: sysctl: Operation not permitted nsh(config-p)/

works as expected ... simple change and I see the issue it solves ...thanks