Hello all.

I know this isn't necessary for quite a while, but in anticipation of
OpenBSD 10.0, I suggest the following diff to sysupgrade.sh:


Index: sysupgrade.sh
===================================================================
RCS file: /cvs/src/usr.sbin/sysupgrade/sysupgrade.sh,v
retrieving revision 1.25
diff -u -p -r1.25 sysupgrade.sh
--- sysupgrade.sh       28 Sep 2019 17:30:07 -0000      1.25
+++ sysupgrade.sh       9 Oct 2019 14:38:20 -0000
@@ -93,8 +93,8 @@ if $RELEASE && $SNAP; then
        usage
 fi

-set -A _KERNV -- $(sysctl -n kern.version |
-       sed 's/^OpenBSD \([0-9]\)\.\([0-9]\)\([^ ]*\).*/\1.\2 \3/;q')
+set -A _KERNV -- $(sysctl -n kern.version | sed \
+       's/^OpenBSD \([1-9][0-9]*\)\.\([0-9]\)\([^ ]*\).*/\1.\2 \3/;q')

 shift $(( OPTIND -1 ))



ok?

Chris

Reply via email to