[Bug 276114] _fibs is unvalued in /etc/rc.d/routing:static_inet(), static_inet6()
Date: Thu, 04 Jan 2024 16:25:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276114
Bug ID: 276114
Summary: _fibs is unvalued in /etc/rc.d/routing:static_inet(),
static_inet6()
Product: Base System
Version: 14.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: khellman@mcprogramming.com
Created attachment 247446
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247446&action=edit
It's a patch :)
_fibs appears to be unvalued in /etc/rc.d/routing:static_inet(), the following
from a `set -x` invocation:
+ static_routes='_loopback '
+ route__loopback='-inet 127.0.0.1 -iface lo0 '
+ [ -gt 0 ]
[: -gt: unexpected operator
_fibs appears only as a local variable in /etc/rc.d/routing, it isn't a local
in static_inet() so possibly it should be exported in the environment? I'm not
familiar enough with FreeBSD networking to know...
Adding a get_fibs() function that always returns a non-negative value removes
the error message on my system, but (again) I don't know if this is the right
fix.
I don't use inet6, but it appears the same is true for static_inet6().
Patch attached. Thanks for all your efforts around and for FreeBSD!
--
You are receiving this mail because:
You are the assignee for the bug.